MetaMask / MetaMask/metamask-extension

Replace `ethers` umbrella package with submodules (`@ethersproject/*`)

Open
#15,895 0 comments 0 reactions 1 assignee Claimed by @adonesky1 View on GitHub
epic MV3 team-extension-platform
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

[Old ticket](https://github.com/metamask/metamask-extension/issues/15022)

We currently include the whole `ethers` library in our dependency tree, but it should be possible to just require and import only the packages we need.

See the readme here for an example: https://github.com/ethers-io/ethers.js/tree/master/packages/contracts

The task is to replace all instances where we import all of ethers with the specific package that is needed, and then to remove the general package from package.json. We should compare the build size before and after this change to confirm it has the desired affect.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.