Skip to content

Commit f65a816

Browse files
docs(rolldown): mention aliasing (#19889)
1 parent 6ba4b8d commit f65a816

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/guide/rolldown.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,17 @@ For additional insights on the motivations behind Rolldown, see the [reasons why
3232

3333
## How to Try Rolldown
3434

35-
The rolldown-powered version of Vite is currently available as a separate package called `rolldown-vite`. You can try it by adding package overrides to your `package.json`:
35+
The rolldown-powered version of Vite is currently available as a separate package called `rolldown-vite`. If you have `vite` as a direct dependency, you can alias the `vite` package to `rolldown-vite` in your project, which should result in a drop-in replacement.
36+
37+
```json
38+
{
39+
"dependencies": {
40+
"vite": "npm:rolldown-vite@latest"
41+
}
42+
}
43+
```
44+
45+
If you use a Vitepress or a meta framework that has Vite as peer dependency, you have to override the `vite` dependency in your package manager:
3646

3747
:::code-group
3848

0 commit comments

Comments
 (0)