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

#164 Replace lodash by custom deepEqual to reduce bundle size #167

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

Spasfonx
Copy link

@Spasfonx Spasfonx commented Apr 6, 2020

Hello,

Like said in issue #164 lodash.isequal increase the bundle size significantly (about 50% 😱). In your project, your need about deep equal is limited, a simple one is enough ! See yourself :

https://bundlephobia.com/[email protected]

So, this PR is for replacing the isequal with something simpler and custom ! I took the deepEqual code from this thread :
https://stackoverflow.com/questions/51622641/deep-comparision-how-does-this-code-return-false-when-values-of-2-objects-are-n

By advance, thanks for your review 😌

PS: i didn't commit the package-lock.json because our npm versions are different and the diff was huge. So i prefer let you update it to avoid any conflicts !

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