How to prevent Babel from renaming variable name "a" to "_a" #12067
-
How to prevent Babel from converting "a" to "_a" |
Beta Was this translation helpful? Give feedback.
Answered by
nicolo-ribaudo
Sep 17, 2020
Replies: 1 comment 7 replies
-
Variable names aren't semantically observable: even if Babel renames a variable, your program will work the same (ignoring That said, it usually renames a variable only when it's needed. Can you show an example of |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
mayewei
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Variable names aren't semantically observable: even if Babel renames a variable, your program will work the same (ignoring
eval
, which isn't supported by Babel anyway).That said, it usually renames a variable only when it's needed. Can you show an example of
a
becoming_a
?