diff options
author | Guy Bedford <guybedford@gmail.com> | 2019-10-13 19:27:39 -0400 |
---|---|---|
committer | Guy Bedford <guybedford@gmail.com> | 2019-11-08 17:26:26 -0500 |
commit | 2367474db46136aecb87b27d82bfa597a95aeedd (patch) | |
tree | 58fd8eb4ad143677a791b00f994965d9573e562b /doc/api/cli.md | |
parent | c73ef32d355aa58672c15e89534c375dd2246f3c (diff) | |
download | android-node-v8-2367474db46136aecb87b27d82bfa597a95aeedd.tar.gz android-node-v8-2367474db46136aecb87b27d82bfa597a95aeedd.tar.bz2 android-node-v8-2367474db46136aecb87b27d82bfa597a95aeedd.zip |
module: conditional exports with flagged conditions
PR-URL: https://github.com/nodejs/node/pull/29978
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'doc/api/cli.md')
-rw-r--r-- | doc/api/cli.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index fa46a00aff..d305644a0f 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -170,6 +170,15 @@ the ability to import a directory that has an index file. Please see [customizing esm specifier resolution][] for example usage. +### `--experimental-conditional-exports +<!-- YAML +added: REPLACEME +--> + +Enable experimental support for the `"require"` and `"node"` conditional +package export resolutions. +See [Conditional Exports][] for more information. + ### `--experimental-json-modules` <!-- YAML added: v12.9.0 @@ -1021,6 +1030,7 @@ Node.js options that are allowed are: * `--enable-fips` * `--enable-source-maps` * `--es-module-specifier-resolution` +* `--experimental-conditional-exports` * `--experimental-json-modules` * `--experimental-loader` * `--experimental-modules` @@ -1324,3 +1334,4 @@ greater than `4` (its current default value). For more information, see the [libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html [remote code execution]: https://www.owasp.org/index.php/Code_Injection [context-aware]: addons.html#addons_context_aware_addons +[Conditional Exports]: esm.html#esm_conditional_exports |