- Notifications
You must be signed in to change notification settings - Fork20.6k
Commitd0ce00c
authored
Core: Migrate from AMD to ES modules 🎉
Migrate all source AMD modules to ECMAScript modules. The final bundleis compiled by a custom build process that uses Rollup under the hood.Test files themselves are still loaded via RequireJS as that has to work inIE 11.Tests can now be run in "Load as modules" mode which replaces the previous"Load with AMD" option. That option of running tests doesn't work in IEand Edge as it requires support for dynamic imports.Some of the changes required by the migration:* check `typeof` of `noGlobal` instead of using the variable directly as it's not available when modules are used* change the nonce module to be an object as ECMASscript module exports are immutable* remove some unused exports* import `./core/parseHTML.js` directly in `jquery.js` so that it's not being cut out when the `ajax` module is excluded in a custom compilationClosesgh-45411 parenta612733 commitd0ce00c
File tree
124 files changed
+801
-1324
lines changed- build/tasks
- dist
- src
- ajax
- var
- attributes
- core
- var
- css
- var
- data
- var
- deferred
- effects
- event
- exports
- manipulation
- var
- queue
- selector
- traversing
- var
- var
- test
- data
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
124 files changed
+801
-1324
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
| 18 | + | |
21 | 19 |
| |
22 | 20 |
| |
23 | 21 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
5 | 14 |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
| 132 | + | |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
| 139 | + | |
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 |
| - | |
| 180 | + | |
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
|
0 commit comments
Comments
(0)