evert / bigint-money

A Money class for high precision calculations using the ESnext bigint type.
MIT License
69 stars 9 forks source link

umd support for unpkg ? #44

Open oliverlj opened 3 years ago

oliverlj commented 3 years ago

Hello Can you add umd build ?

Why

This library is made for computation and in order to be use in web workers, a umd build would be great.

From unpkg docs :

Workflow
For npm package authors, unpkg relieves the burden of publishing your code to a CDN in addition to the npm registry. All you need to do is include your UMD build in your npm package (not your repo, that's different!).

You can do this easily using the following setup:

Add the umd (or dist) directory to your .gitignore file
Add the umd directory to your files array in package.json
Use a build script to generate your UMD build in the umd directory when you publish
That's it! Now when you npm publish you'll have a version available on unpkg as well.
evert commented 3 years ago

Not against this, but would be helpful to get a patch. Never used unpkg!

oliverlj commented 3 years ago

in fact, my performance issue is not bigint money but html table rendering. I never use unpkg either.