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

Easy way to reduce transitive dependencies #1481

Open
benmccann opened this issue Jun 15, 2023 · 0 comments
Open

Easy way to reduce transitive dependencies #1481

benmccann opened this issue Jun 15, 2023 · 0 comments

Comments

@benmccann
Copy link

A large portion of this package's dependencies come from the deep-equal package. You can see this here: https://npm.anvaka.com/#/view/2d/react-vis

The number of dependencies pulled in will actually be even larger if you upgrade to deep-equal v2.

You can get rid of all these dependencies by switching to fast-deep-equal or dequal. E.g. just install fast-deep-equal and change the import from deep-equal to fast-deep-equal/react: https://www.npmjs.com/package/fast-deep-equal#usage

I would send a PR, but I was running into issue building native packages when regenerating the yarn lockfile, so it doesn't make sense for me to do and I thought I'd file an issue instead

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

No branches or pull requests

1 participant