rollup-config-builder
Installation
yarn add --dev rollup rollup-config-builder
Usage
Your project need to have Babel configured.
Then, in your rollup.config.js:
;; del; entry : `./src/my-module.js` output : file : `./dist/my-module.js` name : 'MyModule' ;
Will produce:
/dist
├── my-module.es.js <--- ES6 module file. (for the `module` field in `package.json`)
├── my-module.js <--- UMD (for the `main` field in `package.json`)
└── my-module.min.js <--- UMD, minified.