graypegg / chromatism

:rainbow: A simple set of utility functions for colours.
1.78k stars 37 forks source link

Drop the browser field from the package.json #34

Closed TehShrike closed 6 years ago

TehShrike commented 6 years ago

I think I made a mistake by adding the browser/CommonJS entry point in the first place.

Having the browser field point to a CommonJS build keeps ESM-aware bundlers from going to the "module" field like we want them to.

For the non-ESM bundlers, the UMD build only adds a couple hundred bytes or so.

I think this should be published as a patch release.

TehShrike commented 6 years ago

Could I get a merge/publish? I'm really wanting to use tree-shaking...

TehShrike commented 6 years ago

Published as chromatism2 for now