Webpack 4 Tree Shaking

preview_player
Показать описание
A walk through of tree shaking in Webpack 4 using the lodash package. We look at the difference between production and development builds using the bundle analyzer plugin
Рекомендации по теме
Комментарии
Автор

Really liked your way of sharing knowledge.

rohitkumarshrivastava
Автор

Really a sutle and an informative video!!!

AshishRawat-zlte
Автор

So, it works automaticly if you add "mode" property to your config, right?

Levelord
Автор

webpack's treeshaking won't work on lodash which is written in es5 module (AMD), while it works automatically on lodash-es which is written in es6 module (ESM). so AMD and ESM are not just different in syntax after all. I wonder if wepback has to follow the implementation of ESM to make treeshaking works

SumTsuiTechie
Автор

You demonstrated that Webpack does not do any tree-shaking on a development build. Is that behavior configurable. If so where?

raceman
Автор

nice video, but wth is this loud click? cant be you beating your mouse, can it?

lucas.n