react-polymer
react-polymer copied to clipboard
arrow function cause yarn run build error
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.
This should work when https://github.com/mishoo/UglifyJS2/issues/448 is fixed. Until then, you need to use a transpiler, for example Babel.