You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Non-ASCII characters in identifiers result in invalid escape sequences when the code is bundled/optimized. This is a problem not only when using greek letters (e.g. in a mathy domain: function p(µ, σ) {}), but also when programming in languages other than english (e.g. when using accents in spanish, like in módulo).
This started happening in version 2.10.0 onwards, with 2.9.3 it doesn't do that.
📜 related issues I've found
🐛 bug report
Non-ASCII characters in identifiers result in invalid escape sequences when the code is bundled/optimized. This is a problem not only when using greek letters (e.g. in a mathy domain:
function p(µ, σ) {}
), but also when programming in languages other than english (e.g. when using accents in spanish, like inmódulo
).This started happening in version 2.10.0 onwards, with 2.9.3 it doesn't do that.
🎛 Configuration (.babelrc, package.json, cli command)
The babel configuration is the default one (no
babel.config.json
file or anything like that).The
package.json
file contains:🤔 Expected Behavior
With this HTML file as input (
index.html
):My expectations are:
npm start
and browsing the localhost page, I should see123
printed in the console.ó
inmódulo
. For example:😯 Current Behavior
Uncaught SyntaxError: invalid escape sequence
in Firefox,Uncaught SyntaxError: Invalid or unexpected token
in Chrome.💁 Possible Solution
🔦 Context
I was trying to use parcel in a project which uses spanish as the language for the code (on variable names, etc.).
💻 Code Sample
See "Expected behavior"
🌍 My Environment
The text was updated successfully, but these errors were encountered: