Skip to content

bloated dependency: lodash #1465

@dynst

Description

@dynst
$ du -hs node_modules/lodash/
5.0M    node_modules/lodash/

lodash is over 96 kB of the bundle size. https://bundlephobia.com/package/@xchainjs/xchain-midgard-query@2.0.4

There are 5 dependencies and 1 devDependencies that pull in lodash, a huge utility library that's basically been obsolete for years. (_.includes predates the standardization of Array.includes, which was part of Node.js 6.0 in 2016.)

The dependency on the custom fork foundry-primitives-xchainjs can just be removed as part of #1449 but everything else needs updating.

Upstream issues:

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