doc: remove mention of --require not supporting ES modules

PR-URL: https://github.com/nodejs/node/pull/57620
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
This commit is contained in:
Huáng Jùnliàng 2025-03-28 08:40:49 -04:00 committed by GitHub
parent 0a91e988cf
commit c922bd812c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2188,6 +2188,13 @@ native stack and other runtime environment data.
<!-- YAML
added: v1.6.0
changes:
- version:
- v23.0.0
- v22.12.0
- v20.19.0
pr-url: https://github.com/nodejs/node/pull/51977
description: This option also supports ECMAScript module.
-->
Preload the specified module at startup.
@ -2195,8 +2202,6 @@ Preload the specified module at startup.
Follows `require()`'s module resolution
rules. `module` may be either a path to a file, or a node module name.
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,