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 <tim@timfish.uk>
PR-URL: #52939
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
2 people authored and aduh95 committed Sep 12, 2024
1 parent a37d805 commit de225f5
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 @@ -1390,6 +1390,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 de225f5

Please sign in to comment.