Skip to content

Commit c8c4659

Browse files
committed
fix: specify ESM version of wasm-utxo for browser bundles
Use the ESM version of wasm-utxo in browser bundles to ensure proper WASM import handling. Ticket: BTC-0 TICKET: BTC-0
1 parent fa57e17 commit c8c4659

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack/bitgojs.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ module.exports = {
1515
// use the default version here since we're webpacking ourselves
1616
'@bitgo/sdk-api': path.resolve('../sdk-api/dist/src/index.js'),
1717
async: path.resolve('../../node_modules/async/index.js'),
18+
// Force ESM version of wasm-utxo for browser bundles (has proper wasm import)
19+
'@bitgo/wasm-utxo': path.resolve('../../node_modules/@bitgo/wasm-utxo/dist/esm/js/index.js'),
1820
},
1921
fallback: {
2022
constants: false,

0 commit comments

Comments
 (0)