Skip to content

Commit

Permalink
update content/posts/67.md
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 9, 2023
1 parent 1e23607 commit e00aaf8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/posts/issues-67.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ tags: []
> 你也可以参考 [阮一峰: ESM Module 的语法](https://es6.ruanyifeng.com/#docs/module)[阮一峰: ESM Module 的加载实现](https://es6.ruanyifeng.com/#docs/module-loader) 获取更多信息。
较新的 NodeJS 版本(>=13.2.0)可以加载 CommonJS 和 ESM,用户需指明具体某些文件是什么模块类型。可以简单参考如下:

![image](https://github.com/isayme/blog/assets/1747852/e416400e-f7bf-4c87-bf8d-324a0d36e0d6)

# ESM import 常用场景
一图胜千言:

![image](https://github.com/isayme/blog/assets/1747852/f686ae53-8116-47bf-be6f-812a1d7d3cb1)

## import { add } from 'moduleA'
Expand Down

0 comments on commit e00aaf8

Please sign in to comment.