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
Deletes babel code, leading to broken while loops #4147
Comments
Thanks for posting, this looks like a serious bug. One thing I can tell you so far: The problem where Rollup is struggling is actually not the Babel code, that one just avoids some necessary deoptimizations Rollup has in place currently for async functions. It is this line: this.looping = false; If you replace it with x.looping = false; then it works, i.e. Rollup fails to acknowledge that |
Turns out the actual issue was very different from what I originally thought. Fix at #4149 |
Thank you for the quick fix! @lukastaegert |
Expected Behavior
The main code should remain the same between both pieces
Actual Behavior
Lines 26:29 of the input babel transpiled code gets removed
This might be due to dead code removal, but this isnt a dead end branch! In fact its quite important to stop an infinite loop!
The untranspiled code
Workaround
Here is a slight change that makes it work
Essentially it adds this one line
After that, it all works
The text was updated successfully, but these errors were encountered: