Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99dbd8b

Browse filesBrowse files
JLHwungaduh95
authored andcommitted
doc: remove mention of --require not supporting ES modules
PR-URL: #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>
1 parent 7faa482 commit 99dbd8b
Copy full SHA for 99dbd8b

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/cli.md‎

Copy file name to clipboardExpand all lines: doc/api/cli.md
+7-2Lines changed: 7 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2166,15 +2166,20 @@ native stack and other runtime environment data.
21662166

21672167
<!-- YAML
21682168
added: v1.6.0
2169+
changes:
2170+
- version:
2171+
- v23.0.0
2172+
- v22.12.0
2173+
- v20.19.0
2174+
pr-url: https://github.com/nodejs/node/pull/51977
2175+
description: This option also supports ECMAScript module.
21692176
-->
21702177

21712178
Preload the specified module at startup.
21722179

21732180
Follows `require()`'s module resolution
21742181
rules. `module` may be either a path to a file, or a node module name.
21752182

2176-
Only CommonJS modules are supported.
2177-
Use [`--import`][] to preload an [ECMAScript module][].
21782183
Modules preloaded with `--require` will run before modules preloaded with `--import`.
21792184

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.