From d07682a65d15e4f941448afff753103dae560fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0?= Date: Mon, 15 Dec 2025 12:52:32 +0900 Subject: [PATCH 1/4] docs(guide): update performance page for Vite 8 (#21272) --- guide/performance.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/guide/performance.md b/guide/performance.md index 790658f8..a580e038 100644 --- a/guide/performance.md +++ b/guide/performance.md @@ -114,13 +114,12 @@ Keeping Vite fast with a growing codebase is about reducing the amount of work f Examples of doing less work: -- Use CSS instead of Sass/Less/Stylus when possible (nesting can be handled by PostCSS) +- Use CSS instead of Sass/Less/Stylus when possible (nesting can be handled by PostCSS / Lightning CSS) - Don't transform SVGs into UI framework components (React, Vue, etc.). Import them as strings or URLs instead. -- When using `@vitejs/plugin-react`, avoid configuring the Babel options, so it skips the transformation during build (only esbuild will be used). +- When using `@vitejs/plugin-react`, avoid configuring the Babel options, so it skips the transformation during build (only Oxc will be used). Examples of using native tooling: -Using native tooling often brings larger installation size and as so is not the default when starting a new Vite project. But it may be worth the cost for larger applications. +While Vite core is based on native tooling, some features still use non-native tooling by default to provide better compatibility and feature set. But it may be worth the cost for larger applications. - Try out the experimental support for [LightningCSS](https://github.com/vitejs/vite/discussions/13835) -- Use [`@vitejs/plugin-react-swc`](https://github.com/vitejs/vite-plugin-react-swc) in place of `@vitejs/plugin-react`. From 8ee0ae5a6bc1d8624a8425f02a8b6b5325a15bda Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 13:50:56 +0900 Subject: [PATCH 2/4] fix(deps): update all non-major dependencies (#21285) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com> --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fe7df502..575a40ab 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,10 @@ "docs-serve": "vitepress serve" }, "devDependencies": { - "@shikijs/vitepress-twoslash": "^3.19.0", + "@shikijs/vitepress-twoslash": "^3.20.0", "@types/express": "^5.0.6", "feed": "^5.1.0", - "gsap": "^3.14.1", + "gsap": "^3.14.2", "markdown-it-image-size": "^15.0.1", "oxc-minify": "^0.102.0", "vitepress": "^2.0.0-alpha.15", From a6a5c9d25c4142c49981c46aaac6919007432db9 Mon Sep 17 00:00:00 2001 From: Steve Axtmann Date: Mon, 15 Dec 2025 12:06:02 +0100 Subject: [PATCH 3/4] docs(degit): switch to recommending tiged (#21148) Co-authored-by: Bjorn Lu --- guide/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/index.md b/guide/index.md index 5e25b13b..0bb28909 100644 --- a/guide/index.md +++ b/guide/index.md @@ -116,10 +116,10 @@ create-vite is a tool to quickly start a project from a basic template for popul For a template at `https://github.com/user/project`, you can try it out online using `https://github.stackblitz.com/user/project` (adding `.stackblitz` after `github` to the URL of the project). -You can also use a tool like [degit](https://github.com/Rich-Harris/degit) to scaffold your project with one of the templates. Assuming the project is on GitHub and uses `main` as the default branch, you can create a local copy using: +You can also use a tool like [tiged](https://github.com/tiged/tiged) to scaffold your project with one of the templates. Assuming the project is on GitHub and uses `main` as the default branch, you can create a local copy using: ```bash -npx degit user/project#main my-project +npx tiged user/project my-project cd my-project npm install From 7209497291376645d22ba655dce9424ad8f9fbc2 Mon Sep 17 00:00:00 2001 From: Kylin <1159469891@qq.com> Date: Tue, 16 Dec 2025 08:58:46 +0800 Subject: [PATCH 4/4] docs: update content --- guide/index.md | 6 +----- guide/performance.md | 19 +++---------------- package.json | 25 ------------------------- 3 files changed, 4 insertions(+), 46 deletions(-) diff --git a/guide/index.md b/guide/index.md index 475211ab..14f9a931 100644 --- a/guide/index.md +++ b/guide/index.md @@ -116,11 +116,7 @@ create-vite 是一个快速生成主流框架基础模板的工具。查看 Awes 对于一个 `https://github.com/user/project` 中的模板,可以尝试使用 `https://github.stackblitz.com/user/project`(即在项目 URL 的 `github` 后添加 `.stackblitz`)。 -<<<<<<< HEAD -你也可以用如 [degit](https://github.com/Rich-Harris/degit) 之类的工具,使用社区模版来搭建项目。假设项目在 GitHub 上并使用 `main` 作为默认分支,可以使用以下命令创建本地副本: -======= -You can also use a tool like [tiged](https://github.com/tiged/tiged) to scaffold your project with one of the templates. Assuming the project is on GitHub and uses `main` as the default branch, you can create a local copy using: ->>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9 +你也可以用如 [tiged](https://github.com/tiged/tiged) 之类的工具,使用社区模版来搭建项目。假设项目在 GitHub 上并使用 `main` 作为默认分支,可以使用以下命令创建本地副本: ```bash npx tiged user/project my-project diff --git a/guide/performance.md b/guide/performance.md index 6f1021d1..c86f0e4b 100644 --- a/guide/performance.md +++ b/guide/performance.md @@ -114,25 +114,12 @@ export default defineConfig({ 精简工作的例子: -<<<<<<< HEAD -- 使用 CSS 而不是 Sass/Less/Stylus(可以由 PostCSS 处理嵌套) +- 使用 CSS 而不是 Sass/Less/Stylus(可以由 PostCSS / Lightning CSS 处理嵌套) - 不要将 SVG 转换为 UI 框架组件(例如 React、Vue 等)。请将其作为字符串或 URL 导入。 -- 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它就会在构建期间跳过转换(只使用 esbuild)。 -======= -- Use CSS instead of Sass/Less/Stylus when possible (nesting can be handled by PostCSS / Lightning CSS) -- Don't transform SVGs into UI framework components (React, Vue, etc.). Import them as strings or URLs instead. -- When using `@vitejs/plugin-react`, avoid configuring the Babel options, so it skips the transformation during build (only Oxc will be used). ->>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9 +- 当使用 `@vitejs/plugin-react` 时,避免配置 Babel 选项,这样它就会在构建期间跳过转换(只使用 Oxc)。 使用更原生化工具链的例子: -<<<<<<< HEAD -使用更原生化的工具链往往会带来更大的安装大小,因此在启动新的 Vite 项目时不是默认的。但对于较大的应用程序来说,这可能是值得的。 +尽管 Vite 核心基于原生工具,但某些功能仍默认使用非原生工具,以提供更好的兼容性和功能集。但对于较大的应用程序来说,这可能是值得的。 - 尝试实验性的 [LightningCSS](https://github.com/vitejs/vite/discussions/13835) -- 使用 [`@vitejs/plugin-react-swc`](https://github.com/vitejs/vite-plugin-react-swc) 代替 `@vitejs/plugin-react`。 -======= -While Vite core is based on native tooling, some features still use non-native tooling by default to provide better compatibility and feature set. But it may be worth the cost for larger applications. - -- Try out the experimental support for [LightningCSS](https://github.com/vitejs/vite/discussions/13835) ->>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9 diff --git a/package.json b/package.json index 9972f885..9002b421 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,4 @@ { -<<<<<<< HEAD "name": "vite-docs-cn", "version": "8.0.0-beta.0", "description": "Vite.js documentation Chinese translation.", @@ -39,28 +38,4 @@ "gitHooks": { "commit-msg": "node scripts/verifyCommit.js" } -======= - "name": "@vitejs/monorepo-docs", - "private": true, - "type": "module", - "scripts": { - "typecheck": "vue-tsc", - "docs": "vitepress dev", - "docs-build": "vitepress build", - "docs-serve": "vitepress serve" - }, - "devDependencies": { - "@shikijs/vitepress-twoslash": "^3.20.0", - "@types/express": "^5.0.6", - "feed": "^5.1.0", - "gsap": "^3.14.2", - "markdown-it-image-size": "^15.0.1", - "oxc-minify": "^0.102.0", - "vitepress": "^2.0.0-alpha.15", - "vitepress-plugin-group-icons": "^1.6.5", - "vitepress-plugin-llms": "^1.9.3", - "vue": "^3.5.25", - "vue-tsc": "^3.1.8" - } ->>>>>>> a6a5c9d25c4142c49981c46aaac6919007432db9 }