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 for ECMA2016 => #45

Closed jeffersonmello closed 7 years ago

jeffersonmello commented 7 years ago

I tried minify the follow code

`this.$http.get('url', { params: { imeinumber: imei, metodo: 'getuser', crpt: 'C3DF32EA11' }

  }).then(response => {

    this.varusuario  = response.body;
  },  response => {
    console.log(response);
  });`

and returned error, in https://jscompress.com/ with ECMAScript 2016 checked minify with success

jeffersonmello commented 7 years ago

solved changed for google closure compiler

armin-pfaeffle commented 7 years ago

Sorry for my later answer. My package does not compile anything, it's only a wrapper for YUI Compressor, Google Closure Compiler, UglifyJS2. So you have to check if one if these compilers support ES6+.

Please let me know if you need further support.

markpanado commented 7 years ago

@armin-pfaeffle how can we use the UglifyJS2 Harmony branch? I don't want to use GCC because it's too slow... UglifyJS2 Harmony branch uses ES6.

armin-pfaeffle commented 7 years ago

Hm... That's a good idea! I will check this next few days!