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