Skip to content

Commit

Permalink
docs: target (#6349)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 committed Mar 26, 2021
1 parent d4b2b0a commit 8d098f9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
15 changes: 13 additions & 2 deletions docs/plugins/plugin-esbuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ translateHelp: true

# @umijs/plugin-esbuild


> 试验性功能,可能有坑,但效果拔群。
使用 esbuild 作为压缩器。
Expand All @@ -20,5 +19,17 @@ translateHelp: true
```js
export default {
esbuild: {},
}
};
```

### target

使用 [esbuild#target](https://esbuild.github.io/api/#target) 配置,例如转成 ES5:

```js
export default {
esbuild: {
target: 'es5',
},
};
```
14 changes: 13 additions & 1 deletion docs/plugins/plugin-esbuild.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,17 @@
```js
export default {
esbuild: {},
}
};
```

### target

使用 [esbuild#target](https://esbuild.github.io/api/#target) 配置,例如转成 ES5:

```js
export default {
esbuild: {
target: 'es5',
},
};
```

0 comments on commit 8d098f9

Please sign in to comment.