When comparing rollup vs Angular, the Slant community recommends rollup for most people. In the question“What are the best frontend JavaScript module bundlers?” rollup is ranked 5th while Angular is ranked 9th. 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 Great tooling and language support
Very good CLI and webpack, bundling, testing, deployment support. Deep TypeScript integration and support.
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 Slightly over-engineered
Very enterprisey - made for huge architectures and with tons of declarative, non-intuitive annotations it makes it overkill for very small projects.
Con Native i18n support over-engineered
Not developer-friendly. Switching languages need reloading the whole page. There are third party solutions that work better.
