jquery/build/tasks
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
..
lib Tests: Exclude tests based on compilation flags, not API presence 2022-06-28 12:39:01 +02:00
amd.js Build: Followups after introducing ES modules compiled via Rollup 2020-05-05 14:30:14 +02:00
build.js Build: Switch the minifier from UglifyJS to Terser 2023-05-31 18:59:35 +02:00
dist.js Build: Require strict mode in Node.js scripts via ESLint 2019-10-09 00:17:55 +02:00
node_smoke_tests.js Build:Tests: Fix custom build tests, verify on Travis 2020-01-07 23:59:08 +01:00
promises_aplus_tests.js Build: Make Promises/A+ tests use the dot reporter instead of the default 2019-03-11 16:06:17 +01:00
qunit_fixture.js Build: Require strict mode in Node.js scripts via ESLint 2019-10-09 00:17:55 +02:00
sourcemap.js Build: Switch the minifier from UglifyJS to Terser 2023-05-31 18:59:35 +02:00
testswarm.js Build: Require strict mode in Node.js scripts via ESLint 2019-10-09 00:17:55 +02:00