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

Remove lodash dependency #79

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from
Open

Remove lodash dependency #79

wants to merge 2 commits into from

Conversation

rafeca
Copy link

@rafeca rafeca commented Aug 11, 2017

Since all the lodash functionality used in this module can be currently
implemented easily using ES6, there is no need to include it.

When using metro-bundler with Hot Module Reloading in React Native, this change reduces the bundle size by ~77KB and makes metro-bundler build around ~150 less modules.

Since all the lodash functionality used in this module can be currently
implemented easily using ES6, there is no need to include it.

This allows a bundle size reduction when using HMR of ~77KB
Since the property names are strings, we can safely use standard objects
to ensure that we get constant access time (by using a `Set` we have the
risk that it's polyfilled and that the polyfill does not optimize the
string use case).
@lkatartn lkatartn mentioned this pull request Dec 19, 2017
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.

1 participant