Super opinionated library bundler using Rollup, Babel and terser.
It gets package.json
from the current working directory, parses it and get neeeded info:
name
,author
,version
andlicense
to create beautiful banner comment,main
to get path for saving ES5 bundle,module
orjsnext:main
for saving ES2015 bundle.
Of course it treats src/index.js
as the only entry point for Rollup.
npm install @comandeer/rollup-lib-bundler --save-dev
Just make it a npm script:
"scripts": {
"build": "rlb"
}
No configuration. Consider it a feature.
See LICENSE file for details.