Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce compiled library size #1

Merged
merged 1 commit into from Dec 2, 2015
Merged

reduce compiled library size #1

merged 1 commit into from Dec 2, 2015

Conversation

ghost
Copy link

@ghost ghost commented Dec 1, 2015

This patch swaps lodash out for more granular libs and cuts the compiled size from 460k to 50k:

$ browserify -r . | wc -c # before
460867
$ browserify -r . | wc -c # after
50442

https://github.com/substack/react-starter-hmr/issues/3

This may change browser support since browsers will need to have .filter() and .forEach(), but those can be shimmed. If you'd like I can add more focused libs for filter, forEach, map, etc. The size will be slightly larger, but much smaller than with all of lodash.

@ghost ghost mentioned this pull request Dec 1, 2015
@Macil Macil merged commit 9c2182b into Macil:master Dec 2, 2015
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.

None yet

1 participant