ECMAScript 6 Support in Print context

We are required to standardize our development platform using ECMAScript 6 specification. This isn’t an issue for Web context, but how can we apply the same standard to the Print context using either Babel.js or Node.js transpiling?

For instance, the below code returns errors on line 2, even though I have included the Babel-core compiler:

https://cdnjs.cloudflare.com/ajax/libs/babel-core/6.1.19/browser.min.js

for(let i = 0; i’;

 results.append(p);

}

I don’t think you get transpiling working for print context javascript, and I guess it could impact on performance if doing so.

It’s not enough to include the Babel compiler, the script which needs to be transpiled needs to be marked for being of type text/babel (

We need this working in the print context as well. We have a few web templates where we have implemented ECMAScript 6 standard using the Babel or Node compilers successfully. We now also need to follow suite for all our print templates.

So confirm whether this can be done in the print context. If not, can this be officially escalated with your Development Team as a feature request?

This needs to go to an official support ticket, so please contact the OL Support Team in your region.