forked from dimagi/commcare-hq
/
requirejs_config.js.diff.txt
36 lines (35 loc) · 1.78 KB
/
requirejs_config.js.diff.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
+++
@@ -2,9 +2,13 @@
requirejs.config({
baseUrl: '/static/',
paths: {
+ "es6": "requirejs-babel7/es6",
+ "babel": "@babel/standalone/babel.min",
+ "babel-plugin-transform-modules-requirejs-babel": "babel-plugin-transform-modules-requirejs-babel/index",
"jquery": "jquery/dist/jquery.min",
"underscore": "underscore/underscore",
"bootstrap": "bootstrap/dist/js/bootstrap.min",
+ "bootstrap5": "bootstrap5/dist/js/bootstrap.bundle.min",
"knockout": "knockout/build/output/knockout-latest.debug",
"ko.mapping": "hqwebapp/js/lib/knockout_plugins/knockout_mapping.ko.min",
"datatables": "datatables.net/js/jquery.dataTables.min",
@@ -15,9 +19,8 @@
},
shim: {
"ace-builds/src-min-noconflict/ace": { exports: "ace" },
- "bootstrap": { deps: ['jquery'] },
"ko.mapping": { deps: ['knockout'] },
- "hqwebapp/js/hq.helpers": { deps: ['jquery', 'bootstrap', 'knockout', 'underscore'] },
+ "hqwebapp/js/hq.helpers": { deps: ['jquery', 'knockout', 'underscore'] },
"datatables.bootstrap": { deps: ['datatables'] },
"jquery.rmi/jquery.rmi": {
deps: ['jquery', 'knockout', 'underscore'],
@@ -52,7 +55,7 @@
},
},
- // This is really build config, but it's easier to define a js function here than in bootstrap3/requirejs.yml
+ // This is really build config, but it's easier to define a js function here than in bootstrap5/requirejs.yml
// The purpose of this is to replace hqDefine and hqRequire calls, which in a requirejs context are
// just pass throughs to define and require, with actual calls to define and require. This is needed
// because r.js's dependency tracing depends on parsing define and require calls.