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

Merge pull request #1148 from islishude/patch-1

module-loader: remove `--experimental-conditional-exports`
This commit is contained in:
Ruan YiFeng 2023-02-12 10:22:51 +08:00 committed by GitHub
commit f7b84f228a
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条件加载**
利用`.`这个别名,可以为 ES6 模块和 CommonJS 指定不同的入口。目前,这个功能需要在 Node.js 运行的时候,打开`--experimental-conditional-exports`标志。
利用`.`这个别名,可以为 ES6 模块和 CommonJS 指定不同的入口。
```javascript
{