Replies: 1 comment 7 replies
-
Seems like a good change to me. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
when using
@swc/core
and one of thetransform*
methods, In case of a syntax error, it throws a very detailed error, but of type Error with aGenericFailure
code.I think it is more appropriate to throw the standard
SyntaxError
(which babel also throws on these cases).WDYT? Is there a particular reason swc does not use
SyntaxError
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions