SWC not throwing "SyntaxError: Identifier <x> has already been declared" when expected #2989
Unanswered
edwincoronado
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I thought we are doing this check but seems not? This sounds like worth a filed bug to me. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
I have the following script:
With the following
.swcrc
file:When I run SWC on the file I get the following output:
I would expect a
SyntaxError: Identifier superLongNameSoItMinimizes has already been declared
error just as Babel/Node do. Is there a way to enforce these type of rules through a specific configuration? I'm using@swc/cli 0.1.52
and@swc/core 1.2.118
.Any help would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions