-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unreachable switch statements become 'skeletons' when minified instead of being removed #3659
Comments
This was referenced May 21, 2024
This was referenced May 28, 2024
This was referenced May 29, 2024
This was referenced Jun 2, 2024
This was referenced Jun 3, 2024
This was referenced Jun 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The statements inside this
if
block are unreachable:However it is minified to a useless skeleton still containing the original case statements (Repro on 0.20.1):
This is particularly problematic if the
switch
is contained in a function, since I want the function call to be stripped out.Reproduction
Note: in my use-case this is a logging function and I want to set the
enabled
variable with--define:enabled=false
The text was updated successfully, but these errors were encountered: