1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 10:22:23 +00:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,7 +412,7 @@ import submodule from './node_modules/es-module-package/private-module.js';
**3条件加载** **3条件加载**
利用`.`这个别名,可以为 ES6 模块和 CommonJS 指定不同的入口。目前,这个功能需要在 Node.js 运行的时候,打开`--experimental-conditional-exports`标志。 利用`.`这个别名,可以为 ES6 模块和 CommonJS 指定不同的入口。
```javascript ```javascript
{ {