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:
parent
7523f55ca8
commit
60e128cb93
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user