diff --git a/doc/api/cli.md b/doc/api/cli.md index b44eb542f8e0e8..f89573f77611c6 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -445,7 +445,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` @@ -594,6 +595,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`