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
simplify pulls VariableDeclaration into loop, then mangle fails to mangle same variable after loop #999
Comments
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Minification produces output where a variable is only minified sometimes within a function. Thanks for your help!
To Reproduce
Minimal code to reproduce the bug
Actual Output
Expected Output
I'm not sure if it's expected to pull the
varName
variable into the loop in this circumstance, so the expected output is one of the following:or
Configuration
Turning off all minify plugins except for
mangle
andsimplify
(bug requires both).babel-minify version:
0.5.1
babel core :
7.11.6
babel-minify-config:
babelrc:
Possible solution
Not sure. But it appears the logic in this region may need to be improved, when it decides if a variable is referenced outside the loop.
The text was updated successfully, but these errors were encountered: