webpack 2 introduces tree shaking which can remove unused code when ES2015 modules are used to import and export code.
npm install babel-preset-es2015-webpack --save-dev
in .babelrc:
{ "presets": [ "es2015-webpack" ] }
Topic Id: 6466
Example Ids: 22216
This site is not affiliated with any of the contributors.
Content on the page is taken from Stack Overflow Documentation
This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service