Skip to content

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

Merged
margueriteblair merged 1 commit intomasterfrom
BTC-3148-sdk-coin-dot-esm-cjs
Mar 16, 2026
Merged

feat(sdk-coin-dot): add dual ESM/CJS build for browser WASM support#8288
margueriteblair merged 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 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
@lcovar lcovar requested a review from a team March 13, 2026 16:38
@margueriteblair margueriteblair merged commit e44df5c into master Mar 16, 2026
22 checks passed
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.

4 participants