We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
The falsy while statement should not remove variable declarations.
To Reproduce
Minimal code to reproduce the bug
function a() { ++i; while (false) { var i = meow(); } }
Actual Output
If there is no Error thrown,
function a(){ ++i; }
Expected Output
function a(){ ++i; var i; }
Configuration
How are you using babel-minify?
babel-minify CLI
babel-minify version: 0.5.0
0.5.0
babel version : 7.0.0-beta.49
7.0.0-beta.49
babel-minify-config: default
Possible solution
Looks like path should not be removed but instead replaced with extracted variables.
The text was updated successfully, but these errors were encountered:
I think I've got a solution for that. I'll create a PR soon.
Sorry, something went wrong.
Fixes babel#922, extractVars instead of path removal
f8d2cbc
7667104
No branches or pull requests
Describe the bug
The falsy while statement should not remove variable declarations.
To Reproduce
Minimal code to reproduce the bug
Actual Output
If there is no Error thrown,
Expected Output
Configuration
How are you using babel-minify?
babel-minify CLI
babel-minify version:
0.5.0
babel version :
7.0.0-beta.49
babel-minify-config: default
Possible solution
Looks like path should not be removed but instead replaced with extracted variables.
The text was updated successfully, but these errors were encountered: