Skip to content

Commit 925dc34

Browse files
authored
docs: add overrides note in vite 8 beta post (#2276)
1 parent dec8882 commit 925dc34

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

blog/announcing-vite8-beta.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,48 @@ There are two available upgrade paths:
8989
> If you are relying on specific Rollup or esbuild options, you might need to make some adjustments to your Vite config. Please refer to the [migration guide](/guide/migration) for detailed instructions and examples.
9090
> As with all non-stable, major releases, thorough testing is recommended after upgrading to ensure everything works as expected. Please make sure to report any [issues](https://github.com/vitejs/rolldown-vite/issues).
9191
92+
If you use a metaframework or Vitest, in order to use Vite 8 beta, you have to override the `vite` dependency in your `package.json`, which works slightly different depending on your package manager:
93+
94+
:::code-group
95+
96+
```json [npm]
97+
{
98+
"overrides": {
99+
"vite": "8.0.0-beta.0"
100+
}
101+
}
102+
```
103+
104+
```json [Yarn]
105+
{
106+
"resolutions": {
107+
"vite": "8.0.0-beta.0"
108+
}
109+
}
110+
```
111+
112+
```json [pnpm]
113+
{
114+
"pnpm": {
115+
"overrides": {
116+
"vite": "8.0.0-beta.0"
117+
}
118+
}
119+
}
120+
```
121+
122+
```json [Bun]
123+
{
124+
"overrides": {
125+
"vite": "8.0.0-beta.0"
126+
}
127+
}
128+
```
129+
130+
:::
131+
132+
After adding these overrides, reinstall your dependencies and start your development server or build your project as usual.
133+
92134
## Additional Features in Vite 8
93135

94136
In addition to shipping with Rolldown, Vite 8 comes with:

0 commit comments

Comments
 (0)