feat(wasm-utxo): convert to esm-first package#62
Merged
Conversation
ff64385 to
278ee57
Compare
This change migrates the package to use ESM as the primary format while maintaining compatibility with CommonJS consumers. Key changes: - Set "type": "module" in package.json - Configure dual ESM/CJS output with proper exports field - Add .js extensions to all imports for ESM compatibility - Update build scripts to create both ESM and CJS outputs - Configure tests to work with ESM imports - Add bundler compatibility tests for both ESM and CJS usage - Update mocha config for ESM testing Issue: esm-first.2 Co-authored-by: llm-git <llm-git@ttll.de>
Replace utxolib dependency with address utilities from @bitgo/wasm-utxo, simplifying the UI module by removing external dependency. Update address generation to use fromOutputScriptWithCoin instead of fromOutputScript. Co-authored-by: llm-git <llm-git@ttll.de>
278ee57 to
7cf119d
Compare
lcovar
approved these changes
Nov 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds ESM as the primary module format while maintaining CJS
compatibility for the wasm-utxo package. It also enhances TypeScript
configuration and improves the UI module by replacing utxolib dependencies.
Changes
Issue: esm-first.2