jquery/build
Michał Gołębiowski-Owczarek 27303c6be0
Build: Switch the minifier from UglifyJS to Terser
UglifyJS is ES5-only, while Terser supports newer ECMAScript versions. jQuery
is authored in ES5 but jQuery 4.x will also have an ESM build that cannot be
minified using UglifyJS directly.

We could strip the `export` statement, minify via UglifyJS and re-add one but
that increases complexity & may not fully play nice with source maps.

On the other hand, switching to Terser increases the minfied size by just 324
bytes and the minified gzipped one by just 70 bytes. Such differences largely
disappear among bigger size gains from the `3.x-stable` line - around 2.7 KB
minified gzipped as of now.

Closes gh-5258
2023-05-31 18:59:35 +02:00
..
fixtures Docs: Update the README of the published package 2022-10-03 22:55:49 +02:00
release Release: add support for md5 sums in windows 2023-03-09 20:19:07 +00:00
tasks Build: Switch the minifier from UglifyJS to Terser 2023-05-31 18:59:35 +02:00
release.js Release: remove the need to install grunt globally 2021-03-01 18:16:04 -05:00