graypegg / chromatism

:rainbow: A simple set of utility functions for colours.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IE10 support?

andrey-hohlov opened this issue · comments

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.

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/