webpack-bundle-analyzer icon indicating copy to clipboard operation
webpack-bundle-analyzer copied to clipboard

Drop lodash from the package

Open TrySound opened this issue 3 years ago • 5 comments

Lodash is quite big package and often overused for things available natively. In this diff I removed it from package dependencies and left only for tests.

TrySound avatar Nov 08 '20 23:11 TrySound

Thanks for the PR, but I don't want to drop lodash as JS std library is not good enough to replace it yet and code becomes more complex and less obvious.

th0r avatar Nov 12 '20 21:11 th0r

Well, I spent a lot of time digging through not very obvious lodash solutions.

TrySound avatar Nov 12 '20 22:11 TrySound

Also really in most cases it's just each -> forEach, filter -> filter, map -> map. Are these cases less obvious?

TrySound avatar Nov 12 '20 22:11 TrySound

Ok. Let's step away from code complication and I will do only drop in replacement.

TrySound avatar Nov 12 '20 23:11 TrySound

Hi, I'm a bit late to the party, is this PR still in progress ?

I'm also trying to remove lodash from my dependencies and would help reduce the install size of my tools.

onigoetz avatar Dec 31 '21 09:12 onigoetz