bcoin-org / bcrypto

JS crypto library
Other
99 stars 41 forks source link

Feature request: ESM support #51

Closed dlecan closed 2 years ago

dlecan commented 4 years ago

As for many other GH projects, I'd love to use this package in the browser with tree-shaking possibility, so with ESM enable on it. But currently, it uses Node-style CommonJS.

Would it be possible to support ESM through package.json fields?

ESM loading is also coming to Node.js.

I would be happy to open a pull request but wish to confirm interest from the maintainers first.

faustbrian commented 3 years ago

Support for ESM would also enable the use of this package with https://deno.land/ which is an alternative to node.js if you want to use a more modern and secure runtime than node.js

dlecan commented 2 years ago

No using this project anymore