Expand my Community achievements bar.

GCC minification not working for optional chaining

Avatar

Level 2

We are using AEM version 6.5.9

and our js processor config was

min:gcc;languageIn=ECMASCRIPT_2018;obfuscate=true

then we changed it to

min:gcc;languageIn=ECMASCRIPT_2020;obfuscate=true

but still it does not work. I checked the online compiler where when changed to ECMASCRIPT_2020 it started working

 

Does AEM not support ECMASCRIPT_2020 ?

 

I have written a detailed question regarding this but somehow it was marked as spam so writing this in short. Please let me know if you have any questions in comment.

2 Replies

Avatar

Level 4

Hi ,

Please check this link to use different processor.

https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-16544.html?lang=en 

try this not sure if it works for you

jsProcessor=[min:gcc;obfuscate=true;languageIn=ECMASCRIPT_2019;languageOut=ECMASCRIPT3]

 

Thanks

Avatar

Level 2

@Harishv31 Thanks for your reply but this option did not work. As we need ECMASCRIPT_2020 instead of ECMASCRIPT_2019. No where I could find in the documentation that says if 2020 is supported or not