Skip to content

Build: Switch from UglifyJS to SWC minify, make the minified file ES5 #2335

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

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

mgol
Copy link
Member

@mgol mgol commented Mar 2, 2025

More recent UglifyJS versions have started converting regular functions to arrow ones, making ES5 source file migrated to a ES2015+ minified one. We want to avoid that even in 1.14.x as long as we keep the source file in ES5.

Ref mishoo/UglifyJS#5967
Ref jquery/download.jqueryui.com#629

More recent UglifyJS versions have started converting regular functions to arrow
ones, making ES5 source file migrated to a ES2015+ minified one. We want to
avoid that even in 1.14.x as long as we keep the source file in ES5.

Ref mishoo/UglifyJS#5967
Ref jquery/download.jqueryui.com#629
@mgol mgol merged commit 302b488 into jquery:main Mar 3, 2025
11 checks passed
@mgol mgol deleted the swc-minify branch March 3, 2025 17:58
Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 by reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants