GeezerVison is showing github.com — doc: specify that preloaded modules affect subprocesses · nodejs/node@de225f5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/cli.md +6Lines changed: 6 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1390,6 +1390,9 @@ Follows [ECMAScript module][] resolution rules. |
1390 | 1390 | Use [`--require`][] to load a [CommonJS module][]. |
1391 | 1391 | Modules preloaded with `--require` will run before modules preloaded with `--import`. |
1392 | 1392 |
|
| 1393 | +Modules are preloaded into the main thread as well as any worker threads, |
| 1394 | +forked processes, or clustered processes. |
| 1395 | + |
1393 | 1396 | ### `--input-type=type` |
1394 | 1397 |
|
1395 | 1398 | <!-- YAML |
@@ -2055,6 +2058,9 @@ Only CommonJS modules are supported. |
2055 | 2058 | Use [`--import`][] to preload an [ECMAScript module][]. |
2056 | 2059 | Modules preloaded with `--require` will run before modules preloaded with `--import`. |
2057 | 2060 |
|
| 2061 | +Modules are preloaded into the main thread as well as any worker threads, |
| 2062 | +forked processes, or clustered processes. |
| 2063 | + |
2058 | 2064 | ### `--run` |
2059 | 2065 |
|
2060 | 2066 | <!-- YAML |
|