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 π¦π
Indeed angular pick the module folder. Thanks.
Jean
β¦On Wed, May 27, 2020 at 6:42 AM Scott Cooper ***@***.***> wrote:
π This issue has been resolved in version 3.1.2 π
The release is available on:
- npm package ***@***.*** dist-tag)
***@***.***/tinycolor/v/3.1.2>
- GitHub release
<https://github.com/TypeCtrl/tinycolor/releases/tag/v3.1.2>
Your *semantic-release
<https://github.com/semantic-release/semantic-release>* bot π¦π
β
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVG2LRMV3HTGUBZAWCHOOTRTSK2FANCNFSM4NKIPFIQ>
.