Forest shaking is a term commonly used regarding JavaScript context getting inactive-password treatment

Forest shaking is a term commonly used regarding JavaScript context getting inactive-password treatment

They utilizes the static framework away from ES2015 module syntax, i.age. import and you will export . The name and you will build have been popularized because of the ES2015 module bundler rollup.

New webpack dos launch was included with depending-for the help having ES2015 segments (alias harmony modules) together with empty component export recognition. The brand new webpack 4 launch grows about possibilities having an effective means to fix bring suggestions towards the compiler through the “sideEffects” package.json assets so you can signify and therefore data in your endeavor was “pure” hence safe so you’re able to prune if the vacant. Continue reading “Forest shaking is a term commonly used regarding JavaScript context getting inactive-password treatment”