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
minify wrongly transform inner scope variable to global scope variable #6628
Comments
Before minify, exec resultAfter minify, exec result |
I think this is fixed by #6478. |
it not works for our case yet and it's not related to eval, we will try to make a minimal demo without eval. |
Oh we should abort more in case of |
Ah. We have to go up to the scope with any variable which may interact with eval. |
It did fix my project, Thanks |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
enable copress
disable compress
Input code
Config
Playground link
No response
Expected behavior
should generate a var declaration instead of use global variable
Actual behavior
generate a global variable
Version
1.3.22
Additional context
when I disable compress it works correctly
The text was updated successfully, but these errors were encountered: