Expand my Community achievements bar.

SOLVED

Add type="module" to the script tag when AEM introduces JS

Avatar

Level 1

guodongha_0-1731393613988.png

guodongha_1-1731393632712.png

 

Unable to successfully add type='module', expected the following result

 

guodongha_2-1731393701931.png

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 7

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

 

Tethich_1-1731436676961.png

 

 

 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

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

 

Tethich_1-1731436676961.png