Commit d302cb3
esm: add experimental support for addon modules
PR-URL: #55844
Backport-PR-URL: #59961
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 937e9bb commit d302cb3Copy full SHA for d302cb3
File tree
Expand file treeCollapse file tree
21 files changed
+330
-25
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
21 files changed
+330
-25
lines changedOpen diff view settings
Collapse file
+16-1Lines changed: 16 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
53 | 56 | |
54 | 57 | |
55 | 58 | |
| ||
895 | 898 | |
896 | 899 | |
897 | 900 | |
| 901 | + |
| 902 | + |
| 903 | + |
| 904 | + |
| 905 | + |
| 906 | + |
| 907 | + |
| 908 | + |
| 909 | + |
| 910 | + |
898 | 911 | |
899 | 912 | |
900 | 913 | |
| ||
3330 | 3343 | |
3331 | 3344 | |
3332 | 3345 | |
| 3346 | + |
3333 | 3347 | |
3334 | 3348 | |
3335 | 3349 | |
| ||
3926 | 3940 | |
3927 | 3941 | |
3928 | 3942 | |
| 3943 | + |
3929 | 3944 | |
3930 | 3945 | |
3931 | 3946 | |
|
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 |
|---|---|---|
| ||
1129 | 1129 | |
1130 | 1130 | |
1131 | 1131 | |
1132 | | - |
1133 | | - |
1134 | | - |
1135 | | - |
1136 | | - |
1137 | | - |
| 1132 | + |
| 1133 | + |
| 1134 | + |
| 1135 | + |
| 1136 | + |
| 1137 | + |
| 1138 | + |
| 1139 | + |
| 1140 | + |
1138 | 1141 | |
1139 | 1142 | |
1140 | 1143 | |
1141 | 1144 | |
1142 | 1145 | |
1143 | | - |
| 1146 | + |
1144 | 1147 | |
1145 | 1148 | |
1146 | 1149 | |
| ||
1149 | 1152 | |
1150 | 1153 | |
1151 | 1154 | |
1152 | | - |
| 1155 | + |
1153 | 1156 | |
1154 | 1157 | |
1155 | 1158 | |
|
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 |
|---|---|---|
| ||
1326 | 1326 | |
1327 | 1327 | |
1328 | 1328 | |
| 1329 | + |
1329 | 1330 | |
1330 | 1331 | |
1331 | 1332 | |
|
Collapse file
doc/node-config-schema.json
Copy file name to clipboardExpand all lines: doc/node-config-schema.json+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
121 | 121 | |
122 | 122 | |
123 | 123 | |
| 124 | + |
| 125 | + |
| 126 | + |
124 | 127 | |
125 | 128 | |
126 | 129 | |
|
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+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
| 22 | + |
| 23 | + |
21 | 24 | |
22 | 25 | |
23 | 26 | |
|
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 |
|---|---|---|
| ||
84 | 84 | |
85 | 85 | |
86 | 86 | |
| 87 | + |
| 88 | + |
| 89 | + |
87 | 90 | |
88 | 91 | |
89 | 92 | |
|
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 |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
7 | 6 | |
8 | 7 | |
| ||
52 | 51 | |
53 | 52 | |
54 | 53 | |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
| ||
186 | 186 | |
187 | 187 | |
188 | 188 | |
189 | | - |
| 189 | + |
190 | 190 | |
191 | 191 | |
192 | 192 | |
| ||
227 | 227 | |
228 | 228 | |
229 | 229 | |
| 230 | + |
| 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 | + |
230 | 271 | |
231 | 272 | |
232 | 273 | |
| ||
277 | 318 | |
278 | 319 | |
279 | 320 | |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
280 | 342 | |
281 | 343 | |
282 | 344 | |
283 | 345 | |
284 | | - |
285 | | - |
| 346 | + |
286 | 347 | |
287 | | - |
288 | | - |
289 | | - |
| 348 | + |
| 349 | + |
| 350 | + |
290 | 351 | |
291 | 352 | |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | 353 | |
301 | 354 | |
302 | 355 | |
| ||
337 | 390 | |
338 | 391 | |
339 | 392 | |
340 | | - |
| 393 | + |
341 | 394 | |
342 | 395 | |
343 | 396 | |
| ||
519 | 572 | |
520 | 573 | |
521 | 574 | |
| 575 | + |
| 576 | + |
| 577 | + |
| 578 | + |
| 579 | + |
| 580 | + |
| 581 | + |
| 582 | + |
| 583 | + |
| 584 | + |
| 585 | + |
| 586 | + |
| 587 | + |
| 588 | + |
| 589 | + |
| 590 | + |
| 591 | + |
| 592 | + |
| 593 | + |
522 | 594 | |
523 | 595 | |
524 | 596 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
424 | 424 | |
425 | 425 | |
426 | 426 | |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
427 | 431 | |
428 | 432 | |
429 | 433 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
121 | 121 | |
122 | 122 | |
123 | 123 | |
| 124 | + |
124 | 125 | |
125 | 126 | |
126 | 127 | |
|
0 commit comments