Simple library bundler


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
134Jul 21, 2021Mar 18, 2017Minified + gzip package size for @comandeer/rollup-lib-bundler in KB



Build Status Dependency Status devDependencies Status codecov npm (scoped)

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 and license to create beautiful banner comment,
  • exports.require or main to get path for saving CJS bundle,
  • exports.import, module or jsnext:main for saving ESM 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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.