Skip to content

Easy way to reduce transitive dependencies #1481

Description

@benmccann

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions