- Notifications
You must be signed in to change notification settings - Fork20.6k
Commit8be4c0e
authored
Build: Add
Summary of the changes:* define the `exports` field in `package.json`; `jQuery` & `$` are also exported as named exports in ESM builds now* declare `"type": "module"` globally except for the `build` folder* add the `--esm` option to `grunt custom`, generating jQuery as an ECMAScript module into the `dist-module` folder* expand `node_smoke_tests` to test the slim & ESM builds and their various combinations; also, test both jQuery loaded via a path to the file as well as from module specifiers that should be parsed via the `exports` feature* add details about ESM usage to the release package README* run `compare_size` on all built minified files; don't run it anymore on unminified files where they don't provide lots of value* remove the remove_map_comment task; SWC doesn't insert the`//# sourceMappingURL=` pragma by default so there's nothing to stripFixesgh-4592Closesgh-5255exports
to package.json, export slim & esm builds1 parent65b8503 commit8be4c0e
File tree
52 files changed
+887
-308
lines changed- build
- fixtures
- release
- tasks
- dist-module
- dist
- src
- test
- data
- node_smoke_tests
- commonjs
- lib
- lib
- module
- lib
- promises_aplus_adapters
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+887
-308
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 |
| |
8 | 15 |
| |
9 | 16 |
| |
|
Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
18 | 27 |
| |
19 | 28 |
| |
20 | 29 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + |
Lines changed: 54 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
16 | 17 |
| |
17 |
| - | |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
21 |
| - | |
22 |
| - | |
23 |
| - | |
| 22 | + | |
| 23 | + | |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
37 | 53 |
| |
38 | 54 |
| |
39 | 55 |
| |
40 | 56 |
| |
41 |
| - | |
| 57 | + | |
42 | 58 |
| |
43 | 59 |
| |
44 | 60 |
| |
| |||
122 | 138 |
| |
123 | 139 |
| |
124 | 140 |
| |
125 |
| - | |
| 141 | + | |
126 | 142 |
| |
127 | 143 |
| |
128 | 144 |
| |
| |||
142 | 158 |
| |
143 | 159 |
| |
144 | 160 |
| |
145 |
| - | |
146 |
| - | |
147 |
| - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
148 | 165 |
| |
149 | 166 |
| |
150 | 167 |
| |
| |||
195 | 212 |
| |
196 | 213 |
| |
197 | 214 |
| |
198 |
| - | |
| 215 | + | |
199 | 216 |
| |
200 | 217 |
| |
201 | 218 |
| |
| |||
319 | 336 |
| |
320 | 337 |
| |
321 | 338 |
| |
322 |
| - | |
323 |
| - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
324 | 342 |
| |
325 | 343 |
| |
326 | 344 |
| |
327 |
| - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
328 | 348 |
| |
329 | 349 |
| |
330 | 350 |
| |
| |||
338 | 358 |
| |
339 | 359 |
| |
340 | 360 |
| |
341 |
| - | |
| 361 | + | |
342 | 362 |
| |
343 | 363 |
| |
344 | 364 |
| |
345 | 365 |
| |
346 | 366 |
| |
347 | 367 |
| |
348 | 368 |
| |
349 |
| - | |
| 369 | + | |
350 | 370 |
| |
351 | 371 |
| |
352 | 372 |
| |
| |||
359 | 379 |
| |
360 | 380 |
| |
361 | 381 |
| |
362 |
| - | |
| 382 | + | |
363 | 383 |
| |
364 | 384 |
| |
365 | 385 |
| |
| |||
370 | 390 |
| |
371 | 391 |
| |
372 | 392 |
| |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
373 | 407 |
| |
374 | 408 |
| |
375 | 409 |
| |
| |||
393 | 427 |
| |
394 | 428 |
| |
395 | 429 |
| |
396 |
| - | |
| 430 | + | |
397 | 431 |
| |
398 | 432 |
| |
399 | 433 |
| |
| |||
419 | 453 |
| |
420 | 454 |
| |
421 | 455 |
| |
422 |
| - | |
423 | 456 |
| |
424 | 457 |
| |
425 | 458 |
| |
426 | 459 |
| |
427 | 460 |
| |
428 | 461 |
| |
429 | 462 |
| |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 |
| - | |
| 463 | + | |
434 | 464 |
| |
435 | 465 |
| |
436 | 466 |
| |
|
Lines changed: 25 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
| 114 | + | |
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
| |||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
126 | 150 |
| |
127 | 151 |
| |
128 | 152 |
| |
|
0 commit comments
Comments
(0)