Skip to content

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.

rafeca added 2 commits August 11, 2017 16:59
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