Skip to content

Commit

Permalink
docs(cn): format
Browse files Browse the repository at this point in the history
  • Loading branch information
waynzh committed Aug 1, 2024
1 parent 6347526 commit e481b81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/introduction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ npm install --global rollup

::: code-group

```shell [浏览器]
```shell [浏览器]
# 编译为包含自执行函数('iife')的 <script>。
$ rollup main.js --file bundle.js --format iife
```

```shell [Node.js]
```shell [Node.js]
# 编译为一个 CommonJS 模块 ('cjs')
$ rollup main.js --file bundle.js --format cjs
```

```shell [浏览器和 Node.js]
```shell [浏览器和 Node.js]
# UMD 格式需要一个包名
$ rollup main.js --file bundle.js --format umd --name "myBundle"
```
Expand Down

0 comments on commit e481b81

Please sign in to comment.