Add type="module" to the script tag when AEM introduces JS | Community
Skip to main content

2 replies

arunpatidar
Community Advisor
Community Advisor
November 12, 2024
Tethich
Community Advisor
Community Advisor
November 12, 2024

Hi @guodongha 

 

Can you try to add languageIn and languageOut flags ?

Something like:

jsProcessor="[default:none,min:none;languageIn=ECMASCRIPT_2021;languageOut=ECMASCRIPT_2021]"

Available options are in the documentation: https://github.com/google/closure-compiler/wiki/Flags-and-Options

 

 

 

 

New Member
December 21, 2024

This is not correct answer.

 

All this options are just for a JS code compiler, not related at all how html script tag is rendered.