Skip to main content
Level 2
Feb 19, 2018 2:58 AM UTC
Solved

Problems building packages using ES6

When I use ES6 keywords such as const or let in my code the linter gives a warning and the build fails.  How do I go about fixing/addressing this?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
jantzen_b
jantzen_bAccepted solution
Adobe Employee
Mar 14, 2018 7:02 PM UTC

Launch supports IE10+ browsers so all code should be written with that in mind. Since ES6 isn't fully supported in IE10, you'd need to transcompile to an earlier version of JS.

3 replies

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
Mar 14, 2018 7:02 PM UTC

Launch supports IE10+ browsers so all code should be written with that in mind. Since ES6 isn't fully supported in IE10, you'd need to transcompile to an earlier version of JS.

Translate
aseelund
Level 3
Mar 20, 2018 2:19 PM UTC

Can the same be assumed for Target and using es6 in experiences?

Translate
jantzen_b
Adobe Employee
Adobe Employee
Mar 20, 2018 6:43 PM UTC

That is likely the case, but I'm not sure. I'd suggest posting a question in the Adobe Target community to see which version of JS they support.

Translate