@@ -80,21 +80,27 @@ $ node --completion-bash > node_bash_completion
8080$ source node_bash_completion
8181```
8282
83- ### ` --conditions=condition `
83+ ### ` -C=condition ` , ` - -conditions=condition`
8484<!-- YAML
8585added: v14.9.0
8686-->
8787
8888> Stability: 1 - Experimental
8989
90- Enable experimental support for custom conditional exports resolution
90+ Enable experimental support for custom [ conditional exports] [ ] resolution
9191conditions.
9292
9393Any number of custom string condition names are permitted.
9494
9595The default Node.js conditions of ` "node" ` , ` "default" ` , ` "import" ` , and
9696` "require" ` will always apply as defined.
9797
98+ For example, to run a module with "development" resolutions:
99+
100+ ``` console
101+ $ node -C=development app.js
102+ ```
103+
98104### ` --cpu-prof `
99105<!-- YAML
100106added: v12.0.0
@@ -1259,7 +1265,7 @@ node --require "./a.js" --require "./b.js"
12591265
12601266Node.js options that are allowed are:
12611267<!-- node-options-node start -->
1262- * ` --conditions `
1268+ * ` --conditions ` , ` -C `
12631269* ` --diagnostic-dir `
12641270* ` --disable-proto `
12651271* ` --enable-fips `
@@ -1620,6 +1626,7 @@ $ node --max-old-space-size=1536 index.js
16201626[ `tls.DEFAULT_MIN_VERSION` ] : tls.md#tls_tls_default_min_version
16211627[ `unhandledRejection` ] : process.md#process_event_unhandledrejection
16221628[ `worker_threads.threadId` ] : worker_threads.md#worker_threads_worker_threadid
1629+ [ conditional exports ] : packages.md#packages_conditional_exports
16231630[ context-aware ] : addons.md#addons_context_aware_addons
16241631[ customizing ESM specifier resolution ] : esm.md#esm_customizing_esm_specifier_resolution_algorithm
16251632[ debugger ] : debugger.md
0 commit comments