Skip to content

Commit 3264433

Browse files
OttoAllmendingerllm-git
andcommitted
feat(webpack): force ESM version of utxo-ord for browser bundles
Ensures proper import of wasm-utxo in browser environments by using the ESM version of utxo-ord. Issue: BTC-2936 Co-authored-by: llm-git <llm-git@ttll.de>
1 parent f30c927 commit 3264433

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
@@ -17,6 +17,8 @@ module.exports = {
1717
async: path.resolve('../../node_modules/async/index.js'),
1818
// Force ESM version of wasm-utxo for browser bundles (has proper wasm import)
1919
'@bitgo/wasm-utxo': path.resolve('../../node_modules/@bitgo/wasm-utxo/dist/esm/js/index.js'),
20+
// Force ESM version of utxo-ord for browser bundles (imports wasm-utxo)
21+
'@bitgo/utxo-ord': path.resolve('../utxo-ord/dist/esm/index.js'),
2022
},
2123
fallback: {
2224
constants: false,

0 commit comments

Comments
 (0)