-C condition, --conditions=condition
提供自定义 条件导出 解析条件。
¥Provide 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