diff options
author | Guy Bedford <guybedford@gmail.com> | 2020-08-05 22:06:28 +0300 |
---|---|---|
committer | Guy Bedford <guybedford@gmail.com> | 2020-08-12 00:35:44 +0300 |
commit | 77a515c31aa4383e54e032bebdc399b3704e8a3d (patch) | |
tree | 7d9c73a93ab4314b1121ce4a62c17a408a7625e1 /src/node_options.cc | |
parent | 420da0ccd195adfd36bf160d59af92567a8df74f (diff) |
module: custom --conditions flag option
PR-URL: https://github.com/nodejs/node/pull/34637
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Diffstat (limited to 'src/node_options.cc')
-rw-r--r-- | src/node_options.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_options.cc b/src/node_options.cc index 737c4c147d3..d3fdc459de1 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -281,6 +281,11 @@ DebugOptionsParser::DebugOptionsParser() { } EnvironmentOptionsParser::EnvironmentOptionsParser() { + AddOption("--conditions", + "additional user conditions for conditional exports and imports", + &EnvironmentOptions::conditions, + kAllowedInEnvironment); + AddAlias("-u", "--conditions"); AddOption("--diagnostic-dir", "set dir for all output files" " (default: current working directory)", |