Skip to content

Commit 128c0fa

Browse files
authored
Merge pull request #1172 from liliangrong777/patch-1
Update module-loader.md
2 parents fc58b0c + 79e1534 commit 128c0fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/module-loader.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ import submodule from './node_modules/es-module-package/private-module.js';
397397
}
398398
```
399399

400-
由于`exports`字段只有支持 ES6 的 Node.js 才认识,所以可以用来兼容旧版本的 Node.js。
400+
由于`exports`字段只有支持 ES6 的 Node.js 才认识,所以可以用`main`字段来兼容旧版本的 Node.js。
401401

402402
```javascript
403403
{

0 commit comments

Comments
 (0)