Skip to content

Commit

Permalink
doc: specify that preloaded modules affect subprocesses
Browse files Browse the repository at this point in the history
Co-Authored-By: Tim Fish <[email protected]>
PR-URL: #52939
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
RedYetiDev and timfish authored Sep 4, 2024
1 parent 80a989f commit 2bd6a57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,9 @@ Follows [ECMAScript module][] resolution rules.
Use [`--require`][] to load a [CommonJS module][].
Modules preloaded with `--require` will run before modules preloaded with `--import`.

Modules are preloaded into the main thread as well as any worker threads,
forked processes, or clustered processes.

### `--input-type=type`

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

Modules are preloaded into the main thread as well as any worker threads,
forked processes, or clustered processes.

### `--run`

<!-- YAML
Expand Down

0 comments on commit 2bd6a57

Please sign in to comment.