mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 08:42:45 +00:00
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:
parent
0a91e988cf
commit
c922bd812c
@ -2188,6 +2188,13 @@ native stack and other runtime environment data.
|
|||||||
|
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
added: v1.6.0
|
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.
|
Preload the specified module at startup.
|
||||||
@ -2195,8 +2202,6 @@ Preload the specified module at startup.
|
|||||||
Follows `require()`'s module resolution
|
Follows `require()`'s module resolution
|
||||||
rules. `module` may be either a path to a file, or a node module name.
|
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 preloaded with `--require` will run before modules preloaded with `--import`.
|
||||||
|
|
||||||
Modules are preloaded into the main thread as well as any worker threads,
|
Modules are preloaded into the main thread as well as any worker threads,
|
||||||
|
Loading…
Reference in New Issue
Block a user