File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,13 @@ V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug
132132and profile Node.js instances. The tools attach to Node.js instances via a
133133tcp port and communicate using the [ Chrome DevTools Protocol] [ ] .
134134
135+ ### ` --loader=file `
136+ <!--
137+ added: v9.0.0
138+ -->
139+
140+ Specify the ` file ` of the custom [ experimental ECMAScript Module] [ ] loader.
141+
135142### ` --napi-modules `
136143<!-- YAML
137144added: v7.10.0
@@ -686,4 +693,5 @@ greater than `4` (its current default value). For more information, see the
686693[ REPL ] : repl.html
687694[ debugger ] : debugger.html
688695[ emit_warning ] : process.html#process_process_emitwarning_warning_type_code_ctor
696+ [ experimental ECMAScript Module ] : esm.html#esm_loader_hooks
689697[ libuv threadpool documentation ] : http://docs.libuv.org/en/latest/threadpool.html
Original file line number Diff line number Diff line change @@ -124,6 +124,12 @@ Default is
124124V8 Inspector integration allows attaching Chrome DevTools and IDEs to Node.js instances for debugging and profiling.
125125It uses the Chrome DevTools Protocol.
126126.
127+ .It Fl -loader Ns = Ns Ar file
128+ Specify the
129+ .Ar file
130+ as a custom loader, to load
131+ .Fl -experimental-modules .
132+ .
127133.It Fl -napi-modules
128134This option is a no-op.
129135It is kept for compatibility.
Original file line number Diff line number Diff line change @@ -2633,6 +2633,9 @@ static void PrintHelp() {
26332633 " --inspect[=[host:]port] activate inspector on host:port\n "
26342634 " (default: 127.0.0.1:9229)\n "
26352635#endif // HAVE_INSPECTOR
2636+ " --loader=file (with --experimental-modules) use the \n "
2637+ " specified file as a custom loader\n "
2638+ " for ECMAScript Modules \n "
26362639 " --napi-modules load N-API modules (no-op - option\n "
26372640 " kept for compatibility)\n "
26382641 " --no-deprecation silence deprecation warnings\n "
You can’t perform that action at this time.
0 commit comments