sebastian-software / edge

The Lerna Repository for Edge Platform
Apache License 2.0
33 stars 7 forks source link

Add support for Common Shake Plugin for Webpack to optimize CommonJS dependencies. #12

Open swernerx opened 6 years ago

swernerx commented 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

artisin commented 6 years ago

There has been some progress on this front with Webpack 4 as well as support for complex selector sideEffects.