uber / react-vis

Data Visualization Components

Home Page:https://uber.github.io/react-vis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Easy way to reduce transitive dependencies

benmccann opened this issue · comments

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