Skip to content

feat(sdk-coin-dot): add dual ESM/CJS build for browser WASM support#8288

Open
lcovar wants to merge 1 commit intomasterfrom
BTC-3148-sdk-coin-dot-esm-cjs
Open

feat(sdk-coin-dot): add dual ESM/CJS build for browser WASM support#8288
lcovar wants to merge 1 commit intomasterfrom
BTC-3148-sdk-coin-dot-esm-cjs

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Mar 12, 2026

Add dual ESM/CJS build support to sdk-coin-dot to enable browser compatibility with @bitgo/wasm-dot. Same pattern as sdk-coin-sol (#8060).

Needed for bitgo-ui/bitgo-retail to properly handle async WASM initialization.

  • Update package.json with module, browser, exports fields
  • Add tsconfig.esm.json for ESM build
  • Update tsconfig.json to output CJS to dist/cjs

Ticket: BTC-3148

Add dual ESM/CJS build support to enable browser compatibility with
@bitgo/wasm-dot. Same pattern as sdk-coin-sol (BTC-3007). Needed for
bitgo-ui/bitgo-retail to handle async WASM initialization properly.

- Update package.json with module, browser, exports fields
- Add tsconfig.esm.json for ESM build
- Update tsconfig.json to output CJS to dist/cjs

Ticket: BTC-3148
@lcovar lcovar requested review from a team and zahin-mohammad March 12, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant