-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't Support JavaScript (ES6/ES2015)? #262
Comments
As you can see it here: https://github.com/Chris2011/js-css-minify-compress the yui-compressor.jar is using as a wrapped lib for a plugin for NetBeans to compress JS files for example. It gives me thos output:
when I try to minify this file: http://honlapgyartok.hu/sandbox/FrameworkShared/js/Webbi/Plugin/FormBuilder.js |
It happens here: $(e).on('click', function(
var id = SELF._getFormId(ev.target);
SELF.export(id);
}); I reduced it to: var SELF = this;
var id = 1;
SELF.export(id); So the problem is export, which yuicompressor can't handle. Because of a keyword of ES6? |
Anything new here? Please add ES6 support. |
Progress? |
+1 would be great to have ES6 support! |
add support for Webpack, Browserify and better yet ES6 altogether pls. |
We'll be dropping YUI unless it can support ES6 soon |
Does not support for ECMA6?
|
Is this project still alive? |
@jinliming2 As you can see, they merged some PRs some days/weeks ago. But no real effort on this project anymore(?). @tml can you explain the state here? Waiting for smth or change smth or what? Can you clarify that please? |
+1 |
Proj is dead? |
Looks like project is dead long back. RIP yuicompressor |
+1! |
Guys, someone here found an alternative (jar lib) to yuicompressor with ES6 support? |
As far as I have researched, I believe yuicompressor is a pretty old library which is not being maintained anymore and hence it does not cater to ES6 and the newer syntaxes. If you are really looking for JS compression, then probably you will have to look for alternative bundling approaches like webpack, javascript-minifier, jscompress, etc.,. |
Yep. I got terser (npm based). It saved me. The only one I've tested that was able to ES6 at all! I call the command from java stead of YUICompressor lib call. |
I believe you meant terser |
yep. Sorry! |
You can use gcc
GCC - Google Closure Compiler (iirc) is what we use for an AEM app, which
at time I want to allow. es6 compiled code to pass compilation process and
deploy successfully.
Regards
Pristine
…On Wednesday, March 27, 2019, iileandro ***@***.***> wrote:
Yep. I got tesser (npm based). It saved me. The only one I've tested that
was able to ES6 at all! I call the command from java stead of YUICompressor
lib call.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#262 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARsyjMN9WKznct4TQzZ8ni9d-T6s6vthks5vbD4ugaJpZM4LJ4ih>
.
|
You can use gcc
Google Closure Compiler (iirc) is what we use
…On Wednesday, March 27, 2019, iileandro ***@***.***> wrote:
Yep. I got tesser (npm based). It saved me. The only one I've tested that
was able to ES6 at all! I call the command from java stead of YUICompressor
lib call.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#262 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARsyjMN9WKznct4TQzZ8ni9d-T6s6vthks5vbD4ugaJpZM4LJ4ih>
.
|
Is there a maven plugin for Google Closure Compiler? LIke yuicompressor-maven-plugin |
https://mvnrepository.com/artifact/com.google.javascript/closure-compiler @DougBaughman ;) |
Thanks @Chris2011, but I'm looking for a Maven plug-in (mojo), not just a dependency. I want something that will minify javascript automatically as part of a maven build. LIke http://davidb.github.io/yuicompressor-maven-plugin/ does with yuicompressor |
Code
Command
Error
The text was updated successfully, but these errors were encountered: