Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
The code published to NPM is commonjs and a proprietary webpack bundle, both of which can't be run in the browser without transformations.
Browsers use standard es modules as the module format. It would be great if
I'd be happy to create a PR for this if this is something you're interested in.
Some notes on how this could be implemented https://2ality.com/2019/10/hybrid-npm-packages.html