graypegg / chromatism

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

IE10 support? #39

Open andrey-hohlov opened 6 years ago

andrey-hohlov commented 6 years ago

Hi!

version 3.0.0

I see an error in console: "ReferenceError: 'Set' is undefined" on IE10.

import { brightness } from 'chromatism';
console.log(brightness(-3, '#d81919').hex);

Works well with polyfill: https://www.npmjs.com/package/es6-set

Demo: https://codepen.io/andrey-hohlov/pen/oydemm

Do you support IE10? I see IE >= 9 in browserlist section, but looks like not all features polyfilled by babel.

TehShrike commented 6 years ago

I can't speak for @toish, but I don't have any interest in supporting IE10. I'm about ready to stop caring about IE11, myself.

The best thing to do would be to note in the readme which polyfills are required for older systems. It's better for consumers to bring their own polyfills, anyway. I recommend https://polyfill.io/