@@ -80,21 +80,27 @@ $ node --completion-bash > node_bash_completion
80
80
$ source node_bash_completion
81
81
```
82
82
83
- ### ` --conditions=condition `
83
+ ### ` -C=condition ` , ` - -conditions=condition`
84
84
<!-- YAML
85
85
added: v14.9.0
86
86
-->
87
87
88
88
> Stability: 1 - Experimental
89
89
90
- Enable experimental support for custom conditional exports resolution
90
+ Enable experimental support for custom [ conditional exports] [ ] resolution
91
91
conditions.
92
92
93
93
Any number of custom string condition names are permitted.
94
94
95
95
The default Node.js conditions of ` "node" ` , ` "default" ` , ` "import" ` , and
96
96
` "require" ` will always apply as defined.
97
97
98
+ For example, to run a module with "development" resolutions:
99
+
100
+ ``` console
101
+ $ node -C=development app.js
102
+ ```
103
+
98
104
### ` --cpu-prof `
99
105
<!-- YAML
100
106
added: v12.0.0
@@ -1259,7 +1265,7 @@ node --require "./a.js" --require "./b.js"
1259
1265
1260
1266
Node.js options that are allowed are:
1261
1267
<!-- node-options-node start -->
1262
- * ` --conditions `
1268
+ * ` --conditions ` , ` -C `
1263
1269
* ` --diagnostic-dir `
1264
1270
* ` --disable-proto `
1265
1271
* ` --enable-fips `
@@ -1620,6 +1626,7 @@ $ node --max-old-space-size=1536 index.js
1620
1626
[ `tls.DEFAULT_MIN_VERSION` ] : tls.md#tls_tls_default_min_version
1621
1627
[ `unhandledRejection` ] : process.md#process_event_unhandledrejection
1622
1628
[ `worker_threads.threadId` ] : worker_threads.md#worker_threads_worker_threadid
1629
+ [ conditional exports ] : packages.md#packages_conditional_exports
1623
1630
[ context-aware ] : addons.md#addons_context_aware_addons
1624
1631
[ customizing ESM specifier resolution ] : esm.md#esm_customizing_esm_specifier_resolution_algorithm
1625
1632
[ debugger ] : debugger.md
0 commit comments