MDL-49046 javascript: Add support for AMD modules and jquery.
[moodle.git] / lib / requirejs / moodle-config.js
CommitLineData
adeb96d2
DW
1var require = {
2 baseUrl : '[BASEURL]',
3 // We only support AMD modules with an explicit define() statement.
4 enforceDefine: true,
5 skipDataMain: true,
6
7 paths: {
8 jquery: '[JSURL]lib/jquery/jquery-1.11.1.min[JSEXT]',
9 jqueryui: '[JSURL]lib/jquery/ui-1.11.1/jquery-ui.min[JSEXT]',
10 jqueryprivate: '[JSURL]lib/requirejs/jquery-private[JSEXT]'
11 },
12
13 // Custom jquery config map.
14 map: {
15 // '*' means all modules will get 'jqueryprivate'
16 // for their 'jquery' dependency.
17 '*': { jquery: 'jqueryprivate' },
18
19 // 'jquery-private' wants the real jQuery module
20 // though. If this line was not here, there would
21 // be an unresolvable cyclic dependency.
22 jqueryprivate: { jquery: 'jquery' }
23 }
24};