3 ms·
Perhaps even more important, does library size still matter once dead-code elimination is an option in Webpack2? See: https://twitter.com/dan_abramov/status/65
by LaurensBER 11y ago
Perhaps even more important, does library size still matter once dead-code elimination is an option in Webpack2?
See: https://twitter.com/dan_abramov/status/656970508005736448 https://twitter.com/dan_abramov/status/656970508005736448
- merb 11y agoJust take a look, how many libraries are written in ES6, clearly not much. So dead code Elimination only works if you have ES6 libs and that will take some time.
- pkozlowski_os 11y agoIf you test currently available dead-code elimination tools for JS you will discover that there are tricks that those tools can't play, most important one being eliminating unused methods on object / classes. AFAIK Webpack2 is using Rollup under the hood. While rollup is great and can build smaller outputs (biggest win seems to be elimination of the module system overhead) it can't perform miracles. In short: size still matters, even with dead-code elimination tools (at least as they are today).