Skip to content

Commit 067ebf4

Browse files
committed
feat: add webpack configuration for wasm-utxo
Configure webpack to use the ESM build of wasm-utxo and add extension alias to properly resolve TypeScript files. Ticket: BTC-0 TICKET: BTC-0
1 parent 1bd2a7d commit 067ebf4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack/bitgojs.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ 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 ESM build for wasm-utxo (modern ESM-first package)
18+
'@bitgo/wasm-utxo': path.resolve('../../node_modules/@bitgo/wasm-utxo/dist/esm/index.js'),
1719
async: path.resolve('../../node_modules/async/index.js'),
1820
},
21+
extensionAlias: {
22+
'.js': ['.js', '.ts'],
23+
},
1924
fallback: {
2025
constants: false,
2126
crypto: require.resolve('crypto-browserify'),

0 commit comments

Comments
 (0)