You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fengzilong
changed the title
babel-plugin-minify-dead-code-elimination fails to remove const variable declaration
babel-plugin-minify-dead-code-elimination fails to remove variable declaration after return statement
Oct 14, 2021
Describe the bug
As described in title
To Reproduce
Minimal code to reproduce the bug
Actual Output
there is no Error thrown
Expected Output
Possible solution
If the
timer
reference doesn't appeared beforereturn
in current scope, it can be safely removedAdditional context
Here is the Babel REPL link to reproduce
The text was updated successfully, but these errors were encountered: