Skip to content

Commit

Permalink
docs: note for inconsistency between dev and build (#6674)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 committed May 10, 2022
1 parent 2b2858c commit 095543f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,20 @@ export default defineConfig(({ command, mode }) => {

:::

::: tip NOTE
Since dev and build implement `define` differently, we should avoid some use cases to avoid inconsistency.

Example:

```js
const obj = {
__NAME__, // Don't define object shorthand property names
__KEY__: value // Don't define object key
}
```

:::

### plugins

- **Type:** `(Plugin | Plugin[])[]`
Expand Down

0 comments on commit 095543f

Please sign in to comment.