Skip to content
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

Fixed syntax errors while minifying jquery-3.2.1 #279

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

awegmueller
Copy link

Problem was that jQuery 3.2.1 uses a property named 'throws', which is a
future reserved keyword in YUI compressor. With the patch the check for
the throws keyword has been removed, so the property is treated like any
other regular property.

Problem was that jQquery uses a property named 'throws', which is a
future reserved keyword in YUI compressor. With the patch the check for
the throws keyword has been removed, so the property is treated like any
other regular property.

Set version to 2.4.9-BSI-1.
@OlivierJaquemet
Copy link

Thanks a lot for providing a fix for this issue.
Too bad yuicompressor is no longer maintained and no one merge PR 😢

@padyx
Copy link

padyx commented May 5, 2017

@OlivierJaquemet A built version of this pull request is deployed at Bintray.
If this fix is the only one you need, you might be happy with it.

Please note: That version is not an official build of yuicompressor.
There is no further development or support for that version, and it might go away at any time.

https://bintray.com/bsi-business-systems-integration-ag/scout-eclipse-org/yuicompressor

@OlivierJaquemet
Copy link

OlivierJaquemet commented May 8, 2017

Thank you @padyx, however we have already forked and integrated @awegmueller's fix in a custom build (with other modification related to build process, to prevent conflit with newer version of Rhino).
https://github.com/jalios/yuicompressor

jquery-3.4.1 uses final as variable name -> minifying with yui fails.
The same happens if a variable called native would be used. Both
words are no official keywords anymore and can officially be used
as variable names -> support it.

Updated version to 2.4.9-BSI-2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants