-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
minifier: dce + var hosting edge cases #7209
Comments
Is the var d, c;
console.log(void 0, void 0), console.log('effect'), console.log(c, d); Closure Compiler'svar d,c,b,a;console.log(a,b);(()=>console.log("effect"))();console.log(c,d); |
I need to spend some time rewriting this part of the code, it's a bit more involved. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Boshen
added a commit
that referenced
this issue
Jan 11, 2025
Boshen
added a commit
that referenced
this issue
Jan 11, 2025
) closes #7209 Note: Current output is sub-optimal.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input
Output
Expected
The
a,b,c,d
need to hosted, the((() => console.log('effect'))()
need to preserve.Found the case at https://github.com/rollup/rollup/blob/master/test/form/samples/hoisted-vars-in-dead-branches/main.js
The text was updated successfully, but these errors were encountered: