IE11 Does not support es6, and our project will only export es6

Avatar

Avatar
Validate 1
Level 1
mrobinson
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile

Avatar
Validate 1
Level 1
mrobinson
Level 1

Likes

0 likes

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile
mrobinson
Level 1

17-11-2020

Our project’s ui.frontend is rendering our clientlib-site with some ES6 arrow notations. I verified that the arrow notations occur in the dist clientlib-site js file. Not converting ES6 to ES5 causes our site to fail in IE11, which only supports up to ES5.

 

Our tsconfig.json is already set to compile the ui.frontend to ES5 so we are unsure why the compiler is failing to convert everything.

 

tsconfig.json

{
"compilerOptions": {
"target": "es5",
"module": "es6",
"baseUrl": "../ui.frontend",
"removeComments": true,
"allowJs": true,
"preserveConstEnums": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true
},
"include": [ "**/*.ts" ],
"exclude": [
"node_modules",
"**/tests/*.js",
"**/tests/*.ts",
"**/target",
"**/*.spec.ts",
"**/*.spec.js",
"*.config.js"
]
}

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

154 likes

Total Posts

167 posts

Correct reply

55 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

154 likes

Total Posts

167 posts

Correct reply

55 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile
Umesh_Thakur
MVP

18-11-2020

As far as I know I can simply say that nothing is doable from AEM here. You need to debug it from your front-end perspective with the help of browser console.

Answers (0)