Open swernerx opened 6 years ago
There is a pretty new Webpack plugin to apply some tree shaking to classic CommonJS modules. As this does not seem to have negative side-effects we should try out whether this improves bundle sizes in production.
Plugin: https://github.com/indutny/webpack-common-shake
There has been some progress on this front with Webpack 4 as well as support for complex selector sideEffects.
There is a pretty new Webpack plugin to apply some tree shaking to classic CommonJS modules. As this does not seem to have negative side-effects we should try out whether this improves bundle sizes in production.
Plugin: https://github.com/indutny/webpack-common-shake