moodle/search
Andrew Nicols 2528569425 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-22 14:16:08 +08:00
..
amd MDL-73915 js: Switch amd minification to terser 2022-02-22 14:16:08 +08:00
classes MDL-70979 search: validate external user search parameters. 2021-04-22 10:22:57 +01:00
cli MDL-55356 core_search: Make indexing task/CLI do context requests 2017-10-11 17:17:10 +01:00
engine MDL-71731 phpunit: isolate tests requiring lots of peak mem 2021-05-27 19:42:31 +02:00
templates MDL-65540 core_search: Explicit component name in the str helper 2019-05-09 15:29:02 +08:00
tests MDL-72179 behat: Make use of page resolvers 2021-07-24 18:56:38 +08:00
index.php MDL-68729 Search: Allow query on one server while indexing another 2020-08-06 12:12:01 +01:00
upgrade.txt MDL-69479 upgrade: Change all 4.0 occurrences to 3.10 2020-08-24 14:08:46 +08:00