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.
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
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.