armin-pfaeffle / atom-minify

Minifies JS and CSS files, optionally on save ‒ package for atom.io
https://atom.io/packages/atom-minify
MIT License
24 stars 7 forks source link

Support ES6 arrow? #57

Closed pu3antasyah closed 6 years ago

pu3antasyah commented 6 years ago

Uglify not support ES6 arrow? Here is code and error messages is SyntaxError: Unexpected token: oprator (>).

function return_after_2_second(x) {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve(x * 2)
   }, 300)
  })
}
armin-pfaeffle commented 6 years ago

I must add UglifyJS3, because only there ES6 is supported.