Skip to content

Commit

Permalink
docs(plugin-esbuild): rm esbuild pure setting (#6425)
Browse files Browse the repository at this point in the history
resolve #6422
  • Loading branch information
Map1en committed Apr 16, 2021
1 parent 48c2a15 commit f95319b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
13 changes: 0 additions & 13 deletions docs/plugins/plugin-esbuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,3 @@ export default {
},
};
```

### pure

Use [esbuild#pure](https://esbuild.github.io/api/#pure) config, For example remove `console`:

```js
export default {
esbuild: {
target: 'es5',
pure: ['console.log', 'console.info'],
},
};
```
12 changes: 0 additions & 12 deletions docs/plugins/plugin-esbuild.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,3 @@ export default {
},
};
```

### pure

使用 [esbuild#pure](https://esbuild.github.io/api/#pure) 配置,例如移除 `console`:

```js
export default {
esbuild: {
pure: ['console.log', 'console.info'],
},
};
```

0 comments on commit f95319b

Please sign in to comment.