JasonTheLucky
JasonTheLucky

Reputation: 187

JS Convert Template Literals back to String Concatenation?

Does anyone know of a way to convert JavaScript Template Literals back to String Concatenation?

Why you ask? Google App Script came out with a new es6 debugger that broke after 3 months and the only way to continue developing is to go back to es5 and use the old debugger. I've seen es-linting that can convert string concats to template literals but I can't find anything for converting to the other way.

Upvotes: 1

Views: 333

Answers (1)

Alessandro
Alessandro

Reputation: 2998

Solution

You will have to use Babel in order to transpile JavaScript es6. Since to use Babel in your Apps Script project you will have to work on your local machine, you can use the clasp interface to do so.

Reference

Clasp

Upvotes: 1

Related Questions