-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect transforming break inside switch-case #49
Comments
Additional info: the issue appears in 0.8.15 version |
@rpetrich any word on this? This causes some unexpected and hard to debug issues. We use this inside of TSDX and at least one user downstream is (knowingly) facing this issue jaredpalmer/tsdx#509 I tried to look through the code, but there's a lot of references to switch cases and |
this also happens with |
I create a repo with reproduction: https://github.com/Djaler/babel-plugin-transform-async-to-promises-switch-bug
Brief comparison of the original code with transformed:
As you can see,
break
turns intoreturn
, and because of this alert is never calledThe text was updated successfully, but these errors were encountered: