Skip to content

Commit 2bd6a57

Browse files
Aviv Kellertimfish
Aviv Keller
andauthored
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 80a989f commit 2bd6a57

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
@@ -1406,6 +1406,9 @@ Follows [ECMAScript module][] resolution rules.
14061406
Use [`--require`][] to load a [CommonJS module][].
14071407
Modules preloaded with `--require` will run before modules preloaded with `--import`.
14081408

1409+
Modules are preloaded into the main thread as well as any worker threads,
1410+
forked processes, or clustered processes.
1411+
14091412
### `--input-type=type`
14101413

14111414
<!-- 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)