Skip to content

Latest commit

 

History

History

rollup-plugin-main-entry

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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.