OOTB minify with YUI compressor is failing to minify the unminified jquery 3.1.1, fastdom 1.0.5 and babel-polyfill 6.22.0.

Avatar

Avatar

cqvoyager

Avatar

cqvoyager

cqvoyager

02-03-2017

OOTB minify with YUI compressor is failing to minify the unminified jquery 3.1.1, fastdom 1.0.5  and babel-polyfill 6.22.0.

Primarily its having issues with reserved keywords throw, catch etc. 

Any suggestions/pointers would be highly appreciated.

Few traces of the logs...Attached the complete log for reference.

02.03.2017 16:12:15.744 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR] 3873:9:missing name after . operator
02.03.2017 16:12:15.744 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR]         .catch( function( error ) {
02.03.2017 16:12:15.754 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR] 3874:11:syntax error
02.03.2017 16:12:15.754 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR]             jQuery.readyException( error );
02.03.2017 16:12:15.754 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR] 3875:5:missing ; before statement
02.03.2017 16:12:15.755 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR]         } );
02.03.2017 16:12:15.755 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR] 3878:2:missing ) after argument list
02.03.2017 16:12:15.755 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR] };
02.03.2017 16:12:15.767 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR] 8720:27:missing name after . operator
02.03.2017 16:12:15.767 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.JsFileBuilder 
[ERROR]                     if ( conv && s.throws ) {

02.03.2017 16:12:17.105 *ERROR* [0:0:0:0:0:0:0:1 [1488489132532] GET /etc/designs/mycompany/assets.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Error during assembly of library.
org.mozilla.javascript.EvaluatorException: Compilation produced 75 syntax errors.
    at com.adobe.granite.ui.clientlibs.impl.JsFileBuilder$1.runtimeError(JsFileBuilder.java:108)
    at org.mozilla.javascript.Parser.parse(Parser.java:396)
    at org.mozilla.javascript.Parser.parse(Parser.java:340)
    at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315)
    at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:536)
    at com.adobe.granite.ui.clientlibs.impl.JsFileBuilder.minify(JsFileBuilder.java:84)

View Entire Topic

Avatar

Avatar

PriyankaBiswal

Avatar

PriyankaBiswal

PriyankaBiswal

19-09-2019

This could be of help if you want to know the details of implemention.

Change the minification engine for client libraries in AEM