-
Notifications
You must be signed in to change notification settings - Fork 14
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
Minified JS broken with private class identifiers #15
Comments
See pull request #18. |
I added a test case. |
forgot to check PR uses issue close patterns closing manually |
thanks. released as 2.4.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I report this here once more after posting it on autoptimize.
When a class contains private attributes or methods, the necessary line break or semicolon is not inserted.
As a minimum non-working example, the following class in valid JavaScript syntax does not work:
It is minified to:
which contains several syntax errors: There should be line breaks or semicolons between all the attributes and methods.
Assumption: The hash sign is treated the same way like an operator, and lines beginning with an operator can be appended to the preceding line.
The text was updated successfully, but these errors were encountered: