4

I am building a simple truffle dapp and was wondering how I can further reduce my bundle size using nuxt.

import { ethers } from 'ethers';

Like is there a way to import only the functions I need from the ethers to further reduce bundle size.

https://docs.ethers.io/ethers.js/html/getting-started.html

GrandFleet
  • 809
  • 2
  • 10
  • 25
  • Some standard ways to reduce bundle size include lazy loading ethers, might be appropriate here, using the dynamic import function, refactoring your code, dont think you need ethers right away on mount. – GrandFleet Jul 18 '22 at 18:10

0 Answers0