Skip to content

Commit de225f5

Browse files
Aviv Kellertimfish
authored andcommitted
doc: specify that preloaded modules affect subprocesses
Co-Authored-By: Tim Fish <tim@timfish.uk> PR-URL: #52939 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent a37d805 commit de225f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/api/cli.md

+6
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,9 @@ Follows [ECMAScript module][] resolution rules.
13901390
Use [`--require`][] to load a [CommonJS module][].
13911391
Modules preloaded with `--require` will run before modules preloaded with `--import`.
13921392

1393+
Modules are preloaded into the main thread as well as any worker threads,
1394+
forked processes, or clustered processes.
1395+
13931396
### `--input-type=type`
13941397

13951398
<!-- YAML
@@ -2055,6 +2058,9 @@ Only CommonJS modules are supported.
20552058
Use [`--import`][] to preload an [ECMAScript module][].
20562059
Modules preloaded with `--require` will run before modules preloaded with `--import`.
20572060

2061+
Modules are preloaded into the main thread as well as any worker threads,
2062+
forked processes, or clustered processes.
2063+
20582064
### `--run`
20592065

20602066
<!-- YAML

0 commit comments

Comments
 (0)