GCC minification not working for optional chaining | Community
Skip to main content
Level 2
January 10, 2023

GCC minification not working for optional chaining

  • January 10, 2023
  • 1 reply
  • 951 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 3
January 10, 2023

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

Level 2
January 12, 2023

@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