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: nodejs#52939
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
2 people authored and tpoisseau committed Nov 21, 2024
1 parent 467e7ed commit e352b78
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 e352b78

Please sign in to comment.