Skip to content

Commit 3c27538

Browse files
committed
docs: note that plugins factory requires defineConfig from vite-plus
1 parent c202ba5 commit 3c27538

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/config/troubleshooting.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export default defineConfig({
2929
});
3030
```
3131

32+
::: warning
33+
The plugins factory requires `defineConfig` from `vite-plus`, not from `vite`. Vite's native `defineConfig` does not support factory functions for the `plugins` field.
34+
:::
35+
3236
::: info
3337
The plugins factory works by checking the `VP_COMMAND` environment variable, which is automatically set by `vp` for every command.
3438
:::

0 commit comments

Comments
 (0)