3 ms·
You're exactly right; ES6 modules can solve this. Rollup (an ES6 bundler) has tree shaking [1] and also smaller bundle sizes in general [2]. [1]: http://rollup
by nolanl 11y ago
You're exactly right; ES6 modules can solve this. Rollup (an ES6 bundler) has tree shaking [1] and also smaller bundle sizes in general [2].
[1]: http://rollupjs.org/ http://rollupjs.org/
[2]: https://github.com/nolanlawson/rollup-comparison https://github.com/nolanlawson/rollup-comparison
- lewisl9029 11y agoBeautiful! And it looks like JSPM/SystemJS already has it integrated [1]! I'm wondering if there are any similar efforts in the Webpack ecosystem. [1] https://github.com/systemjs/builder/pull/205 https://github.com/systemjs/builder/pull/205
- TheAceOfHearts 11y agoI think Webpack 2 will support tree-shaking as well.