Closed pu3antasyah closed 6 years ago
Uglify not support ES6 arrow? Here is code and error messages is SyntaxError: Unexpected token: oprator (>).
SyntaxError: Unexpected token: oprator (>)
function return_after_2_second(x) { return new Promise(resolve => { setTimeout(() => { resolve(x * 2) }, 300) }) }
I must add UglifyJS3, because only there ES6 is supported.
Uglify not support ES6 arrow? Here is code and error messages is
SyntaxError: Unexpected token: oprator (>)
.