Top "Tree-shaking" questions

Tree shaking is a modern dead code elimination algorithm for ECMAScript 2015.

Angular CLI output - how to analyze bundle files

I am using Angular CLI to build an app for production using the --prod switch. The bundle is created in …

angular angular-cli tree-shaking
How to enable tree-shaking for a new Angular 4 project

I just created a new Angular 4 project with the CLI: ng new test The versions: @angular/cli: 1.0.0 node: 6.10.0 os: win32 …

angular angular4 tree-shaking
Why webpack doesn't tree-shake the lodash when using "import * as _"?

I am learning about tree-shaking with a webpack 4/React application that uses Lodash. At first, my Lodash usage looked like …

javascript webpack lodash tree-shaking es6-modules
Webpack including unused exports in final bundle (not tree shaking)

I have a setup where a library's index.js (main entry point) exports everything in the lib... so its setup …

webpack webpack-3 tree-shaking
Webpack 3, Babel and Tree shaking not working

I'm trying to find a way to tree-shake my modules and use Babel with Webpack. If I take the example …

webpack babeljs webpack-3 tree-shaking