moodle/search
Andrew Nicols 0a4047ab31 MDL-73915 js: Switch amd minification to terser
Unfortunately the babel minify-mangle plugin seems to be abandoned and
in certain circumstances can be very buggy. The only safe options are to
disable it, or to switch to a different minification library.

Not minifying our javascript is not ideal, so this commit updates the
javascript tasks to use a rollup, combined with babel, and terser.

Babel still converts code from ES/UMD/AMD to AMD modules with the
relevant browser support, whilst terser minifies the code.

The rollup bundler handles tracking and creation of sourcemaps, and
supports better parallelisation of the tasks.

Since the upgrade to Node LTS/Gallium requires an upgrade to @babel/core
and eslint, which change the built files anyway, this seems like the
ideal time to make this change.
2022-02-23 08:55:09 +08:00
..
amd MDL-73915 js: Switch amd minification to terser 2022-02-23 08:55:09 +08:00
classes MDL-71115 search: Only replace course search when equivalent 2021-11-10 09:11:19 +00:00
cli MDL-55356 core_search: Make indexing task/CLI do context requests 2017-10-11 17:17:10 +01:00
engine MDL-73764 tool_xmldb: Regenerate all the files detected by the report 2022-02-08 19:25:03 +01:00
templates MDL-65540 core_search: Explicit component name in the str helper 2019-05-09 15:29:02 +08:00
tests MDL-73659 phpunit: restore_date, api, rule, plugin, manager & helper 2022-02-05 00:03:32 +01:00
index.php MDL-60917 core_search: add top result section 2021-10-12 14:49:36 +11:00
upgrade.txt MDL-69479 upgrade: Change all 4.0 occurrences to 3.10 2020-08-21 23:57:17 +02:00