File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2188,15 +2188,22 @@ native stack and other runtime environment data.
21882188
21892189<!-- YAML
21902190added: v1.6.0
2191+ changes:
2192+ - version:
2193+ - v23.0.0
2194+ - v22.12.0
2195+ - v20.19.0
2196+ pr-url: https://github.com/nodejs/node/issues/52697
2197+ description: This option also supports ECMAScript module.
21912198-->
21922199
21932200Preload the specified module at startup.
21942201
21952202Follows ` require() ` 's module resolution
21962203rules. ` module ` may be either a path to a file, or a node module name.
21972204
2198- Only CommonJS modules are supported.
2199- Use [ ` --import ` ] [ ] to preload an [ ECMAScript module] [ ] .
2205+ Both CommonJS module and [ ECMAScript module ] [ ] are supported.
2206+ Use [ ` --import ` ] [ ] to preload only [ ECMAScript module] [ ] .
22002207Modules preloaded with ` --require ` will run before modules preloaded with ` --import ` .
22012208
22022209Modules are preloaded into the main thread as well as any worker threads,
You can’t perform that action at this time.
0 commit comments