You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/troubleshooting.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,10 @@ export default defineConfig({
29
29
});
30
30
```
31
31
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
+
32
36
::: info
33
37
The plugins factory works by checking the `VP_COMMAND` environment variable, which is automatically set by `vp` for every command.
0 commit comments