Rollup.js | @ GitHub

The rollup CLI tool is the newest/simplest of all the module bundlers.

Bundle CommonJS (npm) app for browser

npm init
npm i 
npm i -g rollup
# For Browsers (IIFE)
rollup 'main.js' --file 'bundle.js' --format 'iife'

# For Node.js (CommonJS)
rollup 'main.js' --file 'bundle.js' --format 'cjs'

# For Browsers & Node.js (UMD)
rollup 'main.js' --file 'bundle.js' --format 'umd' --name 'appBundle'

+ Convert modules from CommonJS to ES6

Rollup plugins to load CommonJS modules:

Build declaratively (rollup.config.js)

rollup -c

Frontend.BuildTools (