Commit 4fba019
process: add process.features.require_module
For detecting whether `require(esm)` is supported without triggering
the experimental warning.
PR-URL: #55241
Backport-PR-URL: #56927
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Refs: #526971 parent cf8701c commit 4fba019Copy full SHA for 4fba019
File tree
Expand file treeCollapse file tree
5 files changed
+59
-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
+59
-0
lines changedOpen diff view settings
Collapse file
+3Lines changed: 3 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
318 | 318 | |
319 | 319 | |
320 | 320 | |
| 321 | + |
| 322 | + |
321 | 323 | |
322 | 324 | |
323 | 325 | |
| ||
1280 | 1282 | |
1281 | 1283 | |
1282 | 1284 | |
| 1285 | + |
1283 | 1286 | |
1284 | 1287 | |
1285 | 1288 | |
|
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 |
|---|---|---|
| ||
1917 | 1917 | |
1918 | 1918 | |
1919 | 1919 | |
| 1920 | + |
| 1921 | + |
| 1922 | + |
| 1923 | + |
| 1924 | + |
| 1925 | + |
| 1926 | + |
| 1927 | + |
| 1928 | + |
| 1929 | + |
| 1930 | + |
1920 | 1931 | |
1921 | 1932 | |
1922 | 1933 | |
| ||
4182 | 4193 | |
4183 | 4194 | |
4184 | 4195 | |
| 4196 | + |
4185 | 4197 | |
4186 | 4198 | |
4187 | 4199 | |
|
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
251 | 251 | |
252 | 252 | |
253 | 253 | |
| 254 | + |
| 255 | + |
254 | 256 | |
255 | 257 | |
256 | 258 | |
| ||
268 | 270 | |
269 | 271 | |
270 | 272 | |
| 273 | + |
| 274 | + |
| 275 | + |
271 | 276 | |
272 | 277 | |
273 | 278 | |
| ||
299 | 304 | |
300 | 305 | |
301 | 306 | |
| 307 | + |
302 | 308 | |
303 | 309 | |
304 | 310 | |
|
Collapse file
test/es-module/test-require-module-feature-detect.js
Copy file name to clipboard+37Lines changed: 37 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 | + |
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 |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
|
0 commit comments