GeezerVison is showing github.com — doc: remove mention of `--require` not supporting ES modules · nodejs/node@99dbd8b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -2166,15 +2166,20 @@ native stack and other runtime environment data. |
2166 | 2166 |
|
2167 | 2167 | <!-- YAML |
2168 | 2168 | 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. |
2169 | 2176 | --> |
2170 | 2177 |
|
2171 | 2178 | Preload the specified module at startup. |
2172 | 2179 |
|
2173 | 2180 | Follows `require()`'s module resolution |
2174 | 2181 | rules. `module` may be either a path to a file, or a node module name. |
2175 | 2182 |
|
2176 | | -Only CommonJS modules are supported. |
2177 | | -Use [`--import`][] to preload an [ECMAScript module][]. |
2178 | 2183 | Modules preloaded with `--require` will run before modules preloaded with `--import`. |
2179 | 2184 |
|
2180 | 2185 | Modules are preloaded into the main thread as well as any worker threads, |
|