Skip to content

Commit aa95bb2

Browse files
committed
feat: add webpack alias for wasm-utxo CJS build
Use wasm-utxo's CommonJS build in webpack-bundled applications to ensure compatibility with the bitgo module which is still CJS-based. Ticket: BTC-0 TICKET: BTC-0
1 parent 1bd2a7d commit aa95bb2

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
@@ -14,6 +14,8 @@ module.exports = {
1414
'@hashgraph/sdk': path.resolve('../../node_modules/@hashgraph/sdk/src/browser.js'),
1515
// use the default version here since we're webpacking ourselves
1616
'@bitgo/sdk-api': path.resolve('../sdk-api/dist/src/index.js'),
17+
// Use CJS build for wasm-utxo in webpack (bitgo module is still CJS-based)
18+
'@bitgo/wasm-utxo': path.resolve('../../node_modules/@bitgo/wasm-utxo/dist/cjs/index.js'),
1719
async: path.resolve('../../node_modules/async/index.js'),
1820
},
1921
fallback: {

0 commit comments

Comments
 (0)