Commit cdb631e
esm: add experimental support for addon modules
PR-URL: #55844
Fixes: #40541
Fixes: #55821
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 3a3f5c9 commit cdb631eCopy full SHA for cdb631e
File tree
Expand file treeCollapse file tree
20 files changed
+331
-26
lines changedOpen diff view settings
Filter options
- doc
- api
- lib/internal/modules/esm
- src
- test/addons
- esm
- node_modules/esm-package
Expand file treeCollapse file tree
20 files changed
+331
-26
lines changedOpen diff view settings
Collapse file
+17-2Lines changed: 17 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | | - |
49 | | - |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
50 | 53 | |
51 | 54 | |
52 | 55 | |
| ||
879 | 882 | |
880 | 883 | |
881 | 884 | |
| 885 | + |
| 886 | + |
| 887 | + |
| 888 | + |
| 889 | + |
| 890 | + |
| 891 | + |
| 892 | + |
| 893 | + |
| 894 | + |
882 | 895 | |
883 | 896 | |
884 | 897 | |
| ||
3046 | 3059 | |
3047 | 3060 | |
3048 | 3061 | |
| 3062 | + |
3049 | 3063 | |
3050 | 3064 | |
3051 | 3065 | |
| ||
3617 | 3631 | |
3618 | 3632 | |
3619 | 3633 | |
| 3634 | + |
3620 | 3635 | |
3621 | 3636 | |
3622 | 3637 | |
|
Collapse file
+11-8Lines changed: 11 additions & 8 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1039 | 1039 | |
1040 | 1040 | |
1041 | 1041 | |
1042 | | - |
1043 | | - |
1044 | | - |
1045 | | - |
1046 | | - |
1047 | | - |
| 1042 | + |
| 1043 | + |
| 1044 | + |
| 1045 | + |
| 1046 | + |
| 1047 | + |
| 1048 | + |
| 1049 | + |
| 1050 | + |
1048 | 1051 | |
1049 | 1052 | |
1050 | 1053 | |
1051 | 1054 | |
1052 | 1055 | |
1053 | | - |
| 1056 | + |
1054 | 1057 | |
1055 | 1058 | |
1056 | 1059 | |
| ||
1060 | 1063 | |
1061 | 1064 | |
1062 | 1065 | |
1063 | | - |
| 1066 | + |
1064 | 1067 | |
1065 | 1068 | |
1066 | 1069 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1160 | 1160 | |
1161 | 1161 | |
1162 | 1162 | |
| 1163 | + |
1163 | 1164 | |
1164 | 1165 | |
1165 | 1166 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
163 | 163 | |
164 | 164 | |
165 | 165 | |
| 166 | + |
| 167 | + |
| 168 | + |
166 | 169 | |
167 | 170 | |
168 | 171 | |
|
Collapse file
lib/internal/modules/esm/formats.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/formats.js+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
| ||
23 | 24 | |
24 | 25 | |
25 | 26 | |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
26 | 31 | |
27 | 32 | |
28 | 33 | |
|
Collapse file
lib/internal/modules/esm/load.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/load.js+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
105 | 105 | |
106 | 106 | |
107 | 107 | |
| 108 | + |
| 109 | + |
| 110 | + |
108 | 111 | |
109 | 112 | |
110 | 113 | |
|
Collapse file
lib/internal/modules/esm/translators.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/translators.js+88-16Lines changed: 88 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | 6 | |
8 | 7 | |
9 | 8 | |
| ||
52 | 51 | |
53 | 52 | |
54 | 53 | |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
| ||
185 | 185 | |
186 | 186 | |
187 | 187 | |
188 | | - |
| 188 | + |
189 | 189 | |
190 | 190 | |
191 | 191 | |
| ||
229 | 229 | |
230 | 230 | |
231 | 231 | |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
232 | 273 | |
233 | 274 | |
234 | 275 | |
| ||
280 | 321 | |
281 | 322 | |
282 | 323 | |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
283 | 345 | |
284 | 346 | |
285 | 347 | |
286 | 348 | |
287 | | - |
288 | | - |
| 349 | + |
289 | 350 | |
290 | | - |
291 | | - |
292 | | - |
| 351 | + |
| 352 | + |
| 353 | + |
293 | 354 | |
294 | 355 | |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | 356 | |
304 | 357 | |
305 | 358 | |
| ||
340 | 393 | |
341 | 394 | |
342 | 395 | |
343 | | - |
| 396 | + |
344 | 397 | |
345 | 398 | |
346 | 399 | |
| ||
462 | 515 | |
463 | 516 | |
464 | 517 | |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
| 528 | + |
| 529 | + |
| 530 | + |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
| 536 | + |
465 | 537 | |
466 | 538 | |
467 | 539 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
409 | 409 | |
410 | 410 | |
411 | 411 | |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
412 | 416 | |
413 | 417 | |
414 | 418 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
120 | 120 | |
121 | 121 | |
122 | 122 | |
| 123 | + |
123 | 124 | |
124 | 125 | |
125 | 126 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
0 commit comments