Skip to content

Commit

Permalink
no-scope-hoist for prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
everdimension committed Dec 27, 2024
1 parent 9d90936 commit 2d0085a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d0085a

Please sign in to comment.