Commit e95163b
process: add process.features.require_module
For detecting whether `require(esm)` is supported without triggering
the experimental warning.
PR-URL: #55241
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 39c7a9e commit e95163bCopy full SHA for e95163b
File tree
Expand file treeCollapse file tree
5 files changed
+58
-0
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/bootstrap
- test
- es-module
- parallel
Expand file treeCollapse file tree
5 files changed
+58
-0
lines changedOpen diff view settings
Collapse file
+4Lines changed: 4 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
250 | 250 | |
251 | 251 | |
252 | 252 | |
| 253 | + |
| 254 | + |
| 255 | + |
253 | 256 | |
254 | 257 | |
255 | 258 | |
| ||
1214 | 1217 | |
1215 | 1218 | |
1216 | 1219 | |
| 1220 | + |
1217 | 1221 | |
1218 | 1222 | |
1219 | 1223 | |
|
Collapse file
+12Lines changed: 12 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1928 | 1928 | |
1929 | 1929 | |
1930 | 1930 | |
| 1931 | + |
| 1932 | + |
| 1933 | + |
| 1934 | + |
| 1935 | + |
| 1936 | + |
| 1937 | + |
| 1938 | + |
| 1939 | + |
| 1940 | + |
| 1941 | + |
1931 | 1942 | |
1932 | 1943 | |
1933 | 1944 | |
| ||
4419 | 4430 | |
4420 | 4431 | |
4421 | 4432 | |
| 4433 | + |
4422 | 4434 | |
4423 | 4435 | |
4424 | 4436 | |
|
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
288 | 288 | |
289 | 289 | |
290 | 290 | |
| 291 | + |
| 292 | + |
| 293 | + |
291 | 294 | |
292 | 295 | |
293 | 296 | |
|
Collapse file
test/es-module/test-require-module-feature-detect.js
Copy file name to clipboard+38Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 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 | + |
| 37 | + |
| 38 | + |
Collapse file
test/parallel/test-process-features.js
Copy file name to clipboardExpand all lines: test/parallel/test-process-features.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
17 | 18 | |
18 | 19 | |
19 | 20 | |
|
0 commit comments