Skip to content

docs: update browser bundling instructions for v7#2314

Open
jasonandjay wants to merge 1 commit intobitcoinjs:masterfrom
jasonandjay:fix/update-browser-docs
Open

docs: update browser bundling instructions for v7#2314
jasonandjay wants to merge 1 commit intobitcoinjs:masterfrom
jasonandjay:fix/update-browser-docs

Conversation

@jasonandjay
Copy link
Member

Summary

  • Replace outdated browserify instructions with esbuild guidance in the Browser section of README
  • Since v7 ships as a dual CJS/ESM package with .cjs file extensions, browserify can no longer properly resolve internal imports, producing broken bundles
  • Remove the obsolete iOS buffer warning and the babelify note, replacing them with a simpler Babel reference

Changes

  • Recommend esbuild as the primary browser bundler with a working example
  • Also mention webpack and rollup as alternatives
  • Provide both IIFE (<script>) and ESM (<script type="module">) usage examples
  • Keep the existing Taproot ECC library guidance unchanged

Closes #2210

Test plan

  • Verify the esbuild command produces a working browser bundle
  • Confirm the README renders correctly on GitHub

Replace outdated browserify instructions with esbuild guidance.
Since v7 ships as a dual CJS/ESM package with .cjs extensions,
browserify can no longer properly resolve internal imports.

Closes bitcoinjs#2210

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

CDN for javascript file?

1 participant