lib/encoding/bech32m.js file is not properly replaced with lib/encoding/bech32m-browser.js when using the lib in the browser. I think it's because it's not included in package.json browser field.
Here is the pull request that add support for bech32m - https://github.com/bcoin-org/bcrypto/pull/61. As you can see two new files are created - bech32m.js and bech32m-browser.js. They should be mapped in the browser field in package.json:
lib/encoding/bech32m.js
file is not properly replaced withlib/encoding/bech32m-browser.js
when using the lib in the browser. I think it's because it's not included in package.jsonbrowser
field.Here is the pull request that add support for bech32m - https://github.com/bcoin-org/bcrypto/pull/61. As you can see two new files are created -
bech32m.js
andbech32m-browser.js
. They should be mapped in thebrowser
field inpackage.json
: