mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
docs(module-loader): edit text
This commit is contained in:
parent
128c0faf43
commit
bae421dcdf
@ -397,7 +397,7 @@ import submodule from './node_modules/es-module-package/private-module.js';
|
||||
}
|
||||
```
|
||||
|
||||
由于`exports`字段只有支持 ES6 的 Node.js 才认识,所以可以用`main`字段来兼容旧版本的 Node.js。
|
||||
由于`exports`字段只有支持 ES6 的 Node.js 才认识,所以可以搭配`main`字段,来兼容旧版本的 Node.js。
|
||||
|
||||
```javascript
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user