LedgerHQ / ledgerjs

⛔️ MOVED to monorepo "ledger-live"
https://github.com/LedgerHQ/ledger-live
Apache License 2.0
574 stars 382 forks source link

Large bundle size due to @ledgerhq/cryptoassets dependency #796

Open sterlu opened 2 years ago

sterlu commented 2 years ago

While analyzing our bundle, I realized there's a single giant blob file in the @ledgerhq/cryptoassets package, imported by @ledgerhq/hw-app-eth. This singlehandedly increases any bundle by over 900KB. Forcing a registry of all ERC20 tokens into a bundle doesn't seem like a good idea for a generalized package such as this one supporting the Eth app. Are there any recommended workarounds for this?

image