M
M
Maxim Safaraliev2018-04-03 21:45:24
JavaScript
Maxim Safaraliev, 2018-04-03 21:45:24

Cyrillic in es6 babel template strings?

Good day.
I want to use babel along with gulp for es6 -> es5. But here's the problem. After compilation in es5, the Cyrillic alphabet is encoded in the template strings, and form a series of incomprehensible code.
\u0422\u0435\u0441\u0442\u043E\u0432\u043E
At first I thought the problem was in the gulp plugin. But after trying the babel online service, I was convinced that the same thing is there.
babeljs.io/repl/#?babili=false&browsers=&build=&bu...
Actually the question is: how to leave Cyrillic after compiling js from es6 to es5?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-04-03
@sim3x

https://github.com/babel/babel/issues/247#issuecom...
fix
https://github.com/babel/babel/issues/4909

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question