Closed SukkaW closed 11 months ago
This PR and #505 have been released in v4.9.1 now ☺️. Thank you for your contributions!
the usage of those individual packages is discouraged: https://lodash.com/per-method-packages
Also, as soon as another package also depends on lodash, this change actually increases the size of node_modules as lodash was deduplicated before.
Thanks @stof. So we should probably revert these changes then. @SukkaW would you be up for that?
Thanks @stof. So we should probably revert these changes then. @SukkaW would you be up for that?
For most of my projects, the only copy of lodash
was introduced by the webpack-bundle-analyzer.
Since lodash is essentially dead (hasn't been maintained for years), IMHO instead of reverting back to lodash, replacing all lodash.*
packages with maintained, performant, and lightweight packages would be a better approach. I will have opened a PR (#612) to do that.
Well, lodash is indeed kinda dead since 3 years. But the per-method packages have last been released 7 years ago. So they are still missing 4 years of work in the lodash package.
The PR follows #505. The PR reduces
node_modules
size afternpm i webpack-bundle-analyzer
with 2 changes:chalk
withpicocolors
lodash
with individuallodash.*
packages.Comparison
Running
npm i --omit=dev --omit=optional
againstwebpack-contrib/webpack-bundle-analyzer:master
:Running
npm i --omit=dev --omit=optional
againstsukkaw/webpack-bundle-analyzer:optimize-install-size
: