Skip to content

Commit

Permalink
Merge pull request #1172 from liliangrong777/patch-1
Browse files Browse the repository at this point in the history
Update module-loader.md
  • Loading branch information
ruanyf authored Apr 10, 2024
2 parents fc58b0c + 79e1534 commit 128c0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/module-loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ import submodule from './node_modules/es-module-package/private-module.js';
}
```

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

```javascript
{
Expand Down

0 comments on commit 128c0fa

Please sign in to comment.