Closed marcofugaro closed 6 years ago
Hi @marcofugaro!
Give it a try and report back 😋
Though this plugin works for lodash
, lodash-es
, and other lodash
-packages.
Modular lodash is a really good initiative, but, with the release of webpack 4, I've having a hard time figuring what is the proper way to bundle an app without getting all lodash imports bundled in.
May you please consider adding a note (somewhere?) to detail what are your current recommandations?
Thanks a lot.
With webpack4 if a library the flag
sideEffects: false
in its package.json, you're able to truly tree-shake the bundle.Lodash added it last december, so is this plugin unnecessary if using webpack4?