diff --git a/doc/api/cli.md b/doc/api/cli.md index a60ef3929c6feb..206c75d4af95ae 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -530,7 +530,8 @@ Only the root context is supported. There is no guarantee that `globalThis.Array` is indeed the default intrinsic reference. Code may break under this flag. -To allow polyfills to be added, `--require` runs before freezing intrinsics. +To allow polyfills to be added, +[`--require`][] and [`--import`][] both run before freezing intrinsics. ### `--force-node-api-uncaught-exceptions-policy` @@ -679,6 +680,18 @@ added: v0.11.15 Specify ICU data load path. (Overrides `NODE_ICU_DATA`.) +### `--import=module` + + + +Preload the specified module at startup. + +Follows [ECMAScript module][] resolution rules. +Use [`--require`][] to load a [CommonJS module][]. +Modules preloaded with `--require` will run before modules preloaded with `--import`. + ### `--input-type=type`