Webpack 2 Deep Dive Webpack 2 Deep Dive

Exercise: Adding Tree Shaking

In this exercise, you will observe the tree shaking process. The “log” and “leftPad” modules will be removed from the application where they aren’t being used. Kent first takes a look at the application bundle in it’s current form. They then talks through how tree shaking will analyze the code and removed the unused modules. The solution to this exercise can be found on the FEM/04.0-tree-shaking branch. - http://slides.com/kentcdodds/webpack-deep-dive#/15/1
Get Unlimited Access Now