diff options
author | Alex Aubuchon <alex@aub.dev> | 2019-09-28 12:51:15 -0400 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-09-30 21:47:01 -0700 |
commit | 15fb02a515bf937bb1045d415dd09bfe632a463b (patch) | |
tree | 01da2627ce115a9297f4b76c489fe1321183ab39 /doc/api/cli.md | |
parent | 1c5a3f0d091ef34b82f89dce4c87b431cab4c3ee (diff) | |
download | android-node-v8-15fb02a515bf937bb1045d415dd09bfe632a463b.tar.gz android-node-v8-15fb02a515bf937bb1045d415dd09bfe632a463b.tar.bz2 android-node-v8-15fb02a515bf937bb1045d415dd09bfe632a463b.zip |
src: rename --loader to --experimental-loader
Renames the `--loader` cli argument to `--experimental-loader`. This is
to clearly indicate the esm loader feature as experimental even after
esm is no longer experimental.
Also minorly alters the `--experimental-loader` docs to say that the
passed loader can be an esm module.
Refs: https://github.com/nodejs/modules/issues/351#issuecomment-535189524
PR-URL: https://github.com/nodejs/node/pull/29752
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/cli.md')
-rw-r--r-- | doc/api/cli.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index 6d09b85842..c196adf038 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -368,12 +368,13 @@ Specify ways of the inspector web socket url exposure. By default inspector websocket url is available in stderr and under `/json/list` endpoint on `http://host:port/json/list`. -### `--loader=file` +### `--experimental-loader=module` <!-- YAML added: v9.0.0 --> -Specify the `file` of the custom [experimental ECMAScript Module][] loader. +Specify the `module` of a custom [experimental ECMAScript Module][] loader. +`module` may be either a path to a file, or an ECMAScript Module name. ### `--max-http-header-size=size` <!-- YAML @@ -981,6 +982,7 @@ Node.js options that are allowed are: * `--enable-fips` * `--es-module-specifier-resolution` * `--experimental-exports` +* `--experimental-loader` * `--experimental-modules` * `--experimental-policy` * `--experimental-repl-await` @@ -998,7 +1000,6 @@ Node.js options that are allowed are: * `--inspect-port`, `--debug-port` * `--inspect-publish-uid` * `--inspect` -* `--loader` * `--max-http-header-size` * `--napi-modules` * `--no-deprecation` |