Skip to content

Commit c922bd8

Browse files
authored
doc: remove mention of --require not supporting ES modules
PR-URL: #57620 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent 0a91e98 commit c922bd8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/api/cli.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -2188,15 +2188,20 @@ native stack and other runtime environment data.
21882188

21892189
<!-- YAML
21902190
added: v1.6.0
2191+
changes:
2192+
- version:
2193+
- v23.0.0
2194+
- v22.12.0
2195+
- v20.19.0
2196+
pr-url: https://github.com/nodejs/node/pull/51977
2197+
description: This option also supports ECMAScript module.
21912198
-->
21922199

21932200
Preload the specified module at startup.
21942201

21952202
Follows `require()`'s module resolution
21962203
rules. `module` may be either a path to a file, or a node module name.
21972204

2198-
Only CommonJS modules are supported.
2199-
Use [`--import`][] to preload an [ECMAScript module][].
22002205
Modules preloaded with `--require` will run before modules preloaded with `--import`.
22012206

22022207
Modules are preloaded into the main thread as well as any worker threads,

0 commit comments

Comments
 (0)