-C=condition, --conditions=condition


稳定性: 1 - 实验性的

¥Stability: 1 - Experimental

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

¥Enable experimental support for custom conditional exports resolution conditions.

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

¥Any number of custom string condition names are permitted.

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

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

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

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

$ node -C=development app.js