Skip to content

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

Open
lcovar wants to merge 1 commit intomasterfrom
BTC-3007-esm-sol
Open

feat(sdk-coin-sol): add dual ESM/CJS build for browser WASM support#8060
lcovar wants to merge 1 commit intomasterfrom
BTC-3007-esm-sol

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Feb 5, 2026

Add dual ESM/CJS build support to sdk-coin-sol to enable browser compatibility with @bitgo/wasm-solana.

Changes:

  • Update package.json with module, browser, exports fields
  • Update tsconfig.json to output CJS to dist/cjs
  • Add tsconfig.esm.json for ESM build
  • Add webpack alias for @bitgo/sdk-coin-sol

This is required for browser bundles (bitgo-ui, bitgo-retail) to properly handle async WASM initialization.

Ticket: BTC-3007

Add dual ESM/CJS build support to sdk-coin-sol to enable browser
compatibility with @bitgo/wasm-solana.

Changes:
- Update package.json with module, browser, exports fields
- Update tsconfig.json to output CJS to dist/cjs
- Add tsconfig.esm.json for ESM build
- Add webpack alias for @bitgo/sdk-coin-sol

This is required for browser bundles (bitgo-ui, bitgo-retail) to
properly handle async WASM initialization.

Ticket: BTC-3007
@lcovar lcovar marked this pull request as ready for review February 5, 2026 02:02
@lcovar lcovar requested review from a team as code owners February 5, 2026 02:02
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