-
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
fix corner case in dead_code
#3553
Conversation
@alexlamsl Off topic... I've never known the difference between the |
I tried at one point but gave up after discovering the mass of tests I need to update. And while we are on |
The one thing that I regret not adding would be a |
For the most part I think the compress options are pretty orthogonal in their responsibilities and are reasonable. I think it's better to err on the side of providing more configurability rather than less. That way when there's a bug it's trivial for users to set an option to work around it. It's also useful for debugging. |
Yes, that is why I ended up leaving |
Given that it requires modifying the parser to handle said annotation (for optimal performance), I guess that extra flag wouldn't exactly help much with debugging. That said, if there is a valid usage scenario for explicitly disabling |
Babel has a bug where it incorrectly generates pure annotations with respect to parentheses in some cases. When the final minified code did not operate correctly it was not readily apparent whether there was a Babel bug or a minifier bug. An |
Next time just short-circuit this out, i.e. simply
More fun for us 😉 |
Thanks. The option wasn't intended for me so much as for users. I know my way around the code pretty well. ;-) |
fixes #3552