Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

This PR adds ESM build support for several UTXO-related modules while
maintaining CommonJS compatibility. The implementation enables dual-format
output that works across browser and Node.js environments.

Key changes:

  • Add ESM build configuration for abstract-utxo, utxo-core, and utxo-staking
  • Update package.json files with proper export conditions
  • Create browser-specific TypeScript configs for ESM output
  • Adjust directory structure for dual-format support
  • Fix dist tags script to properly handle modules not in package.json
  • Add comprehensive documentation for the dual module format support

BTC-2732

OttoAllmendinger and others added 3 commits November 17, 2025 13:57
Update package.json to support ESM/browser module format alongside CommonJS.
Add tsconfig.browser.json for ESM builds with appropriate configuration.
Adjust directory structure for dual-format support.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
Update package.json and add ESM-specific tsconfig to support both CJS and
ESM module formats. Adjust output paths and package exports accordingly.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
… ESM and CJS variants

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
Configure dual CommonJS/ESM output for utxo-staking module. Update package.json
with proper export conditions and file paths. Add ESM-specific tsconfig.

Issue: BTC-2732

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review November 17, 2025 13:29
@OttoAllmendinger OttoAllmendinger requested review from a team as code owners November 17, 2025 13:29
@lcovar lcovar merged commit 704a646 into master Nov 17, 2025
14 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.

5 participants