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
errorInfo: Uncaught SyntaxError: Use of const in strict mode. tinyColor2 code:
const trimLeft = /^\s+/; const trimRight = /\s+$/;
react-color
dependences inludesTinyColor2
; 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