bgrins / TinyColor

Fast, small color manipulation and conversion for JavaScript
https://bgrins.github.io/TinyColor/
MIT License
5.05k stars 439 forks source link

Add esm support #245

Closed bgrins closed 1 year ago

bgrins commented 1 year ago

Found a simpler solution compared with #241 by using rollup directly, and moving all the cjs implementation (including tests which get duplicated) into a subdirectory

This also replaces a number of the current tools (grunt, docco, qunit) and will need some additional work to get testing running in CI.

Todo:

Follow ups

bgrins commented 1 year ago

217

bgrins commented 1 year ago

https://github.com/bgrins/test-tinycolor-upgrade is looking good with a test deploy from this branch. Both CJS and ESM are working as expected