4 ms·
Didn't the Rollup creator claim that Rollup always makes the smallest bundles and if not, it's a wrong Rollup config?
by k__ 10y ago
Didn't the Rollup creator claim that Rollup always makes the smallest bundles and if not, it's a wrong Rollup config?
- rich_harris 10y agoRollup creator here. You're thinking of this tweet[0] which states that correctly configured Rollup bundles are always smaller than Webpack bundles. Closure Compiler on the other hand is currently far more sophisticated than either Rollup or Webpack when it comes to shrinking your code. It's just a little bit harder to use and makes certain assumptions about your code, which is probably why it often doesn't get quite as much attention (though Malte Ubl's splittable[1] provides a nice interface onto CC and supports code splitting — well worth a look). [0]: https://twitter.com/Rich_Harris/status/820304090332876800 https://twitter.com/Rich_Harris/status/820304090332876800 [1]: https://github.com/cramforce/splittable https://github.com/cramforce/splittable
- k__ 10y agoAh yes, thanks :)