-C=condition, --conditions=condition


稳定性: 1 - 实验

启用对自定义的条件导出解析条件的实验性支持。

允许任意数量的自定义字符串条件名称。

"node""default""import""require" 的默认 Node.js 条件将始终按照定义应用。

例如,要运行具有 "development" 解析的模块:

$ node -C=development app.js

Stability: 1 - Experimental

Enable experimental support for custom conditional exports resolution conditions.

Any number of custom string condition names are permitted.

The default Node.js conditions of "node", "default", "import", and "require" will always apply as defined.

For example, to run a module with "development" resolutions:

$ node -C=development app.js