rollup-plugin-main-entry

3.2.0 • Public • Published

rollup-plugin-main-entry

Conventional entry point for rollup builds with pkg.main

Usage

Use this plugin in your rollup.config.js to default the entry point using the main property of your package.json file.

const mainEntry = require('rollup-plugin-main-entry');
const pkg = require('./package.json);

module.exports = {
    plugins: [
        mainEntry(pkg)
    ]
};

If pkg.main is "lib/index.js", the rollup entry will be src/index.js.

Note: This package requires node >=8.9.

Related

Check the Pectin project docs for more information.

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-main-entry

Weekly Downloads

2

Version

3.2.0

License

ISC

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • evocateur