From ee5a4985b0f4ffc5480f7e77e17226ab080d5cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0?= Date: Tue, 23 Sep 2025 10:49:50 +0900 Subject: [PATCH 1/2] docs(rolldown): recommend pinning the version (#20814) Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> --- guide/rolldown.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guide/rolldown.md b/guide/rolldown.md index 2da863e2..af29d7f7 100644 --- a/guide/rolldown.md +++ b/guide/rolldown.md @@ -43,6 +43,12 @@ The rolldown-powered version of Vite is currently available as a separate packag } ``` +::: tip Please pin the version! + +While these examples use `@latest`, we recommend using a specific version number to avoid unexpected breaking changes as [`rolldown-vite` is considered experimental](#versioning-policy). + +::: + 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: :::code-group From a1954eef6884f60a06434d61a1497e071ff00d11 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Wed, 24 Sep 2025 08:10:17 +0800 Subject: [PATCH 2/2] fix: resolved conflict --- guide/rolldown.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/guide/rolldown.md b/guide/rolldown.md index 96760051..2c0cd203 100644 --- a/guide/rolldown.md +++ b/guide/rolldown.md @@ -43,17 +43,13 @@ Rolldown 专注于三个主要原则: } ``` -<<<<<<< HEAD -如果你使用了 Vitepress 或其他以 Vite 作为同等依赖(peer dependency)的元框架,你需要在 `package.json` 文件中覆盖 `vite` 依赖,具体操作方式会因你使用的包管理器而略有不同。 -======= -::: tip Please pin the version! +::: tip 请固定版本! -While these examples use `@latest`, we recommend using a specific version number to avoid unexpected breaking changes as [`rolldown-vite` is considered experimental](#versioning-policy). +虽然这些示例使用了 `@latest`,但我们建议使用特定的版本号,以避免意外的重大更改,因为 [`rolldown-vite` 被认为是实验性的](#versioning-policy)。 ::: -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: ->>>>>>> ee5a4985b0f4ffc5480f7e77e17226ab080d5cac +如果你使用了 Vitepress 或其他以 Vite 作为同等依赖(peer dependency)的元框架,你需要在 `package.json` 文件中覆盖 `vite` 依赖,具体操作方式会因你使用的包管理器而略有不同。 :::code-group