scttcper / tinycolor

🎨 Color manipulation and conversion

Home Page:https://tinycolor.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not compatible with IE11

jeandat opened this issue Β· 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 πŸ“¦πŸš€