Problems building packages using ES6

Avatar

Avatar

FOX007

Avatar

FOX007

FOX007

18-02-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570
jantzen_belliston-Adobe
Community Manager

14-03-2018

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.

Answers (2)

Answers (2)

Avatar

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570

Avatar

jantzen_belliston-Adobe

Community Manager

Total Posts

1.9K

Likes

312

Correct Answer

570
jantzen_belliston-Adobe
Community Manager

20-03-2018

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.

Avatar

Avatar

aseelund

Avatar

aseelund

aseelund

20-03-2018

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