Post

Great benchmark! We're continuously optimizing Rspack for faster builds and smaller bundle sizes. It's worth noting that webpack/Rspack produce larger bundles in this case due to different handling of dynamic require() in moment.js, see github.com/filipsobol/b...

github.comfix: ignore context require for `moment/locale` for webpack by SoonIter · Pull Request #2 · filipsobol/bundle-size-benchmarkThere is a lib moment which contains code like var aliasRequire = require aliasRequire('./locale' + name) This means require subfoloder in moment dynamically. Rollup, webpack and Rspack al...
Filip Sobol@filipsobol.com

About 10 months ago I benchmarked the most popular bundlers to compare build speed and bundle size (tree-shaking + minification). I just re-ran the tests with the latest versions to see what’s changed 👇

2 reposts5 likes

No replies yet.