summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSarat Addepalli <sarat.addepalli@paytm.com>2018-08-03 14:54:14 +0530
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-08-18 11:15:37 +0300
commit9d6619efeaa80f899d0ee06ddb37c6c76e41f823 (patch)
tree39835b044ca7bbfd4cccb129fe1c7fbdbaccd039 /doc
parent7cbbb27c0721ced7b74fc39033c8485b8d2ad864 (diff)
downloadandroid-node-v8-9d6619efeaa80f899d0ee06ddb37c6c76e41f823.tar.gz
android-node-v8-9d6619efeaa80f899d0ee06ddb37c6c76e41f823.tar.bz2
android-node-v8-9d6619efeaa80f899d0ee06ddb37c6c76e41f823.zip
doc: add doc for --loader option
PR-URL: https://github.com/nodejs/node/pull/22104 Fixes: https://github.com/nodejs/node/issues/21230 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cli.md8
-rw-r--r--doc/node.16
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md
index 4986d01912..637c1cd905 100644
--- a/doc/api/cli.md
+++ b/doc/api/cli.md
@@ -132,6 +132,13 @@ V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug
and profile Node.js instances. The tools attach to Node.js instances via a
tcp port and communicate using the [Chrome DevTools Protocol][].
+### `--loader=file`
+<!--
+added: v9.0.0
+-->
+
+Specify the `file` of the custom [experimental ECMAScript Module][] loader.
+
### `--napi-modules`
<!-- YAML
added: v7.10.0
@@ -686,4 +693,5 @@ greater than `4` (its current default value). For more information, see the
[REPL]: repl.html
[debugger]: debugger.html
[emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor
+[experimental ECMAScript Module]: esm.html#esm_loader_hooks
[libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html
diff --git a/doc/node.1 b/doc/node.1
index 31d39c2268..e437cc2e2a 100644
--- a/doc/node.1
+++ b/doc/node.1
@@ -124,6 +124,12 @@ Default is
V8 Inspector integration allows attaching Chrome DevTools and IDEs to Node.js instances for debugging and profiling.
It uses the Chrome DevTools Protocol.
.
+.It Fl -loader Ns = Ns Ar file
+Specify the
+.Ar file
+as a custom loader, to load
+.Fl -experimental-modules .
+.
.It Fl -napi-modules
This option is a no-op.
It is kept for compatibility.