Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asset files includes ES6 syntax #265

Closed
liangzhuang327 opened this issue Jan 18, 2023 · 2 comments · Fixed by #266
Closed

asset files includes ES6 syntax #265

liangzhuang327 opened this issue Jan 18, 2023 · 2 comments · Fixed by #266

Comments

@liangzhuang327
Copy link

liangzhuang327 commented Jan 18, 2023

errorInfo: Uncaught SyntaxError: Use of const in strict mode.
tinyColor2 code:
const trimLeft = /^\s+/; const trimRight = /\s+$/;

react-color dependences inludes TinyColor2 ;
version: TinyClolor2——@1.5.2 ; react-color——@2.18.0
device: android version is 5.0 and chrome version is 39
suggestion: output the bundle should translate ES6 to ES5

@bgrins
Copy link
Owner

bgrins commented Feb 3, 2023

I have a work in progress for this in https://github.com/bgrins/TinyColor/tree/build-babel

@bgrins
Copy link
Owner

bgrins commented Feb 3, 2023

Hi @liangzhuang327 this fix should be published on npm. Let me know if you have any more issues with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants