mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
Merge pull request #1148 from islishude/patch-1
module-loader: remove `--experimental-conditional-exports`
This commit is contained in:
commit
f7b84f228a
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user