scttcper/tinycolor

Not compatible with IE11

jeandat opened this issue ยท 5 comments

It it me or compatibility with es5 only browser has been dropped in 3.x branch?
Compiled code contains ES6 syntax which then crash in IE11 with SCRIPT1003: Expected ':'.

How are you using tinycolor? Are you using the tinycolor.umd.min.js?

I'm using the modern import syntax:

import { isReadable, TinyColor } from '@ctrl/tinycolor';

The build is managed by the angular CLI.

I have no problem with tinycolor 2.x releases.

angular-cli i think should be using the "module" field which would allow us to keep the es2018 build for node and an es5 build for browsers

๐ŸŽ‰ This issue has been resolved in version 3.1.2 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€