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 authored and Marco Ippolito committed 2025-06-05 11:11:36 +02:00
1 parent 3140a8f133
commit 776becfe01
1 file changed
+5 -2
+5 -2
View File
@@ -2003,6 +2003,11 @@ this is not set and the network interfaces are included.
<!-- YAML
added: v1.6.0
changes:
- version:
- 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.
@@ -2010,8 +2015,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`.
### `--secure-heap=n`