When comparing rollup vs module-concat, the Slant community recommends rollup for most people. In the question“What are the best frontend JavaScript module bundlers?” rollup is ranked 5th while module-concat is ranked 15th. The most important reason people chose rollup is:
Can reduce resulting bundle size by performing "tree-shaking" (removing unused parts of code).
Ranked in these QuestionsQuestion Ranking
Pros
Pro Implements tree-shaking
Can reduce resulting bundle size by performing "tree-shaking" (removing unused parts of code).
Pro Easy configuration
Simple config files
Pro Small and fast installation
It's only one file.
Pro Ideal for shipping es2015/ES6 modules
Pro Supports Client-side Browser Projects
Provides some support for concatenating client-side browser JavaScript modules. Also, can process the browser
property in package.json.
Pro Supports languages that compile to JS
For example, CoffeeScript is supported using the compilers
option.
Pro Lightweight
This library just concatenates CommonJS modules together into a single *.js file. Nothing else. It only uses 1 dependency: resolve
Cons
Con Async/await support lack
Doesn't support async/await out of the box for the time being, and there is no available working plugin to fill the gap.
Con Not a full-featured bundler
This doesn't handle CSS or HTML stuff. It only bundles JavaScript files.