In 2016 Webpack v2 supported ES2015 module syntax, i.e. import and export syntax (or harmony modules) and announced the feature, called
“Tree Shaking”.
The feature was created for DCE (dead code elimination), or if you put it another way, to help delete unused modules from the bundle. 1. Example Let’s say we…