MDL-75012 js: Drop support for modules built pre-babel
commit84c650489ab097771b50e6c63d26ffdd001db037
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 24 Feb 2023 01:22:14 +0000 (24 09:22 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 2 Mar 2023 03:55:31 +0000 (2 11:55 +0800)
treefdb24e7375af693b9c90006659eba0b0096fcd72
parent784098fe9e6dec5a39317d91ea08c771ff893b76
MDL-75012 js: Drop support for modules built pre-babel

We now include more polyfills than we have ever done, and some of these
cause false-positives on our code to address modules which do not have a
name.

We started adding module names to modules in Moodle 3.8 at _build_ time
and kept support for modules which were not transpiled using Babel
before that point.

We no longer need to support this as all pre-3.8 Moodle versions are
long out of support. The most recent to go out of support was Moodle
3.5, which went completely out of support in May 2021.

We should not support code written and minified without a transpilation
phase from this time any longer.
lib/requirejs.php
lib/upgrade.txt