module-loader: remove --experimental-conditional-exports

ref: https://nodejs.org/api/packages.html#modules-packages

> Remove the --experimental-conditional-exports option. In 12.16.0, conditional exports are still behind --experimental-modules.
This commit is contained in:
Shude Li
2023-02-12 10:05:16 +08:00
committed by GitHub
parent 7523f55ca8
commit 60e128cb93
+1 -1
View File
@@ -412,7 +412,7 @@ import submodule from './node_modules/es-module-package/private-module.js';
**3)条件加载**
利用`.`这个别名,可以为 ES6 模块和 CommonJS 指定不同的入口。目前,这个功能需要在 Node.js 运行的时候,打开`--experimental-conditional-exports`标志。
利用`.`这个别名,可以为 ES6 模块和 CommonJS 指定不同的入口。
```javascript
{