Merge branch 'MDL-64012' of https://github.com/timhunt/moodle
[moodle.git] / lib / requirejs / moodle-config.js
blobacce48ee5c3fdace3eafe3bddbaffaff55a0cadb
1 var require = {
2     baseUrl : '[BASEURL]',
3     // We only support AMD modules with an explicit define() statement.
4     enforceDefine: true,
5     skipDataMain: true,
6     waitSeconds : 0,
8     paths: {
9         jquery: '[JSURL]lib/jquery/jquery-3.2.1.min[JSEXT]',
10         jqueryui: '[JSURL]lib/jquery/ui-1.12.1/jquery-ui.min[JSEXT]',
11         jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
12     },
14     // Custom jquery config map.
15     map: {
16       // '*' means all modules will get 'jqueryprivate'
17       // for their 'jquery' dependency.
18       '*': { jquery: 'jqueryprivate' },
19       // Stub module for 'process'. This is a workaround for a bug in MathJax (see MDL-60458).
20       '*': { process: 'core/first' },
22       // 'jquery-private' wants the real jQuery module
23       // though. If this line was not here, there would
24       // be an unresolvable cyclic dependency.
25       jqueryprivate: { jquery: 'jquery' }
26     }