From 2d0085ac7119405051914686074a2564de43fa3c Mon Sep 17 00:00:00 2001 From: everdimension Date: Fri, 27 Dec 2024 14:44:23 +0300 Subject: [PATCH] no-scope-hoist for prod build --- scripts/build.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index 738e6f901..1a22e522c 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -9,7 +9,10 @@ async function build() { // pass --no-content-hash flag to avoid code-splitting issues: // https://github.com/parcel-bundler/parcel/issues/8071#issuecomment-1214438848 // https://github.com/parcel-bundler/parcel/issues/8071#issuecomment-1133549719 - './node_modules/.bin/parcel build src/manifest.json src/ui/hardware-wallet/ledger.html --no-content-hash --no-source-maps' + // + // pass --no-scope-hoist to fix re_export error with ethers@v6 ($re_export$ethers is not defined) + // https://github.com/parcel-bundler/parcel/issues/4796#issuecomment-658283698 + './node_modules/.bin/parcel build src/manifest.json src/ui/hardware-wallet/ledger.html --no-content-hash --no-source-maps --no-scope-hoist' ); console.log('Done'); // eslint-disable-line no-console