react-polymer icon indicating copy to clipboard operation
react-polymer copied to clipboard

arrow function cause yarn run build error

Open vagusX opened this issue 7 years ago • 1 comments

https://github.com/jscissr/react-polymer/blob/master/index.js#L65

static/js/main.ba291ce8.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [./~/react-polymer/index.js:65,0]

error Command failed with exit code 1.

vagusX avatar Mar 15 '17 08:03 vagusX

This should work when https://github.com/mishoo/UglifyJS2/issues/448 is fixed. Until then, you need to use a transpiler, for example Babel.

jscissr avatar Mar 15 '17 09:03 jscissr