Skip to content

Commit

Permalink
docs(module-loader): edit text
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Apr 10, 2024
1 parent c2a9e9c commit 5e7e24e
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 才认识,所以可以用`main`字段来兼容旧版本的 Node.js。
由于`exports`字段只有支持 ES6 的 Node.js 才认识,所以可以搭配`main`字段,来兼容旧版本的 Node.js。

```javascript
{
Expand Down

0 comments on commit 5e7e24e

Please sign in to comment.