Skip to content

Drop lodash from the package - #393

Closed
TrySound wants to merge 4 commits into
webpack:masterfrom
TrySound:drop-lodash
Closed

TrySound wants to merge 4 commits into
webpack:masterfrom
TrySound:drop-lodash

Conversation

@TrySound

@TrySound TrySound commented Nov 8, 2020

Copy link
Copy Markdown
Contributor

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.

@th0r

th0r commented Nov 12, 2020 •

Copy link
Copy Markdown
Contributor

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.

@TrySound

Copy link
Copy Markdown
Contributor Author

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

@TrySound TrySound closed this Nov 12, 2020
@TrySound TrySound reopened this Nov 12, 2020
@TrySound

TrySound commented Nov 12, 2020 •

Copy link
Copy Markdown
Contributor Author

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

@TrySound

Copy link
Copy Markdown
Contributor Author

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

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.
@onigoetz

Copy link
Copy Markdown

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.

@valscion valscion closed this Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants