diff --git a/lib/requirejs/moodle-config.js b/lib/requirejs/moodle-config.js index 108fc33d3edf8..acce48ee5c3fd 100644 --- a/lib/requirejs/moodle-config.js +++ b/lib/requirejs/moodle-config.js @@ -16,6 +16,8 @@ var require = { // '*' means all modules will get 'jqueryprivate' // for their 'jquery' dependency. '*': { jquery: 'jqueryprivate' }, + // Stub module for 'process'. This is a workaround for a bug in MathJax (see MDL-60458). + '*': { process: 'core/first' }, // 'jquery-private' wants the real jQuery module // though. If this line was not here, there would diff --git a/lib/requirejs/readme_moodle.txt b/lib/requirejs/readme_moodle.txt index b0df977b044d1..17ce5e75f2364 100644 --- a/lib/requirejs/readme_moodle.txt +++ b/lib/requirejs/readme_moodle.txt @@ -1,3 +1,4 @@ Description of import into Moodle: // Download from https://requirejs.org/docs/download.html // Put the require.js and require.min.js and LICENSE file in this folder. +// Check if MDL-60458 workaround can be removed.