File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2454,11 +2454,16 @@ changes:
24542454 description: This option also supports ECMAScript module.
24552455-->
24562456
2457- Preload the specified module at startup.
2457+ Preload the specified module at startup, before the main entry point
2458+ of the application is executed.
24582459
24592460Follows ` require() ` 's module resolution
24602461rules. ` module ` may be either a path to a file, or a node module name.
24612462
2463+ This option is commonly used to initialize global configuration,
2464+ set up instrumentation, or apply polyfills before any application
2465+ code runs.
2466+
24622467Modules preloaded with ` --require ` will run before modules preloaded with ` --import ` .
24632468
24642469Modules are preloaded into the main thread as well as any worker threads,
You can’t perform that action at this time.
0 commit comments