Skip to content

Commit 3db608a

Browse files
docs(rolldown): make clear changes should be applied in package.json (#19913)
1 parent a50b21b commit 3db608a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/guide/rolldown.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,18 @@ 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`. 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.
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's `package.json`, which should result in a drop-in replacement.
3636

3737
```json
3838
{
3939
"dependencies": {
40-
"vite": "npm:rolldown-vite@latest"
40+
"vite": "^6.0.0" // [!code --]
41+
"vite": "npm:rolldown-vite@latest" // [!code ++]
4142
}
4243
}
4344
```
4445

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:
46+
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.json`, which works slightly different depending on your package manager:
4647

4748
:::code-group
4849

0 commit comments

Comments
 (0)