-
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
Uglified code breaks with --comments all #112
Comments
alexlamsl
added a commit
to alexlamsl/UglifyJS
that referenced
this issue
Dec 21, 2017
fixes mishoo#112 fixes mishoo#218 fixes mishoo#372
alexlamsl
added a commit
to alexlamsl/UglifyJS
that referenced
this issue
Dec 21, 2017
fixes mishoo#112 fixes mishoo#218 fixes mishoo#372
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running uglifyjs 2.2.4 with
-b --comments all
, the output ends up with a newline after a return statement. This results in unwanted code being executed.Reduced testcase: https://gist.github.com/4707430#file-commented-js
There should not be a newline between line 8 & 9
I realize this is really an edge case, but it breaks code. That's something a minifier should never do.
The text was updated successfully, but these errors were encountered: