lodash / babel-plugin-lodash

Modular Lodash builds without the hassle.
Other
1.96k stars 91 forks source link

Is this plugin unnecessary if using webpack4? #214

Closed marcofugaro closed 6 years ago

marcofugaro commented 6 years ago

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?

jdalton commented 6 years ago

Hi @marcofugaro!

Give it a try and report back 😋

Though this plugin works for lodash, lodash-es, and other lodash-packages.

yamsellem commented 6 years ago

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.