Skip to content

Conversation

@threehams
Copy link

Lodash is a fairly large library, but the individual methods are tiny.

On a project which includes React/Redux/Immutable and a few other things, gzip size:
Before: 112.0 KB
After: 96.2 KB

@threehams
Copy link
Author

An alternative to this is to put all the path imports into a file (like lodashSubset), re-export them from there, then import _ from './lodashSubset'; throughout the app. That would have the same effect, but would cut down on the number of imports per file.

Let me know.

@gajus
Copy link
Owner

gajus commented Jul 20, 2016

Thank you for noticing the issue. This is an oversight in the current build process.

It has been fixed now.

2f8d69b

@gajus gajus closed this Jul 20, 2016
@threehams
Copy link
Author

That works too. Thanks for the quick release.

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.

2 participants