From 9323405a43da58d3dcf65827adf6189cc11694c5 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Thu, 27 Nov 2025 12:30:39 +0900 Subject: [PATCH 1/5] docs: mention `--no-interactive` flag (#21152) Co-authored-by: Bjorn Lu --- guide/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/index.md b/guide/index.md index 029a47e0..841d77d6 100644 --- a/guide/index.md +++ b/guide/index.md @@ -106,6 +106,8 @@ See [create-vite](https://github.com/vitejs/vite/tree/main/packages/create-vite) You can use `.` for the project name to scaffold in the current directory. +To create a project without interactive prompts, you can use the `--no-interactive` flag. + :::: ## Community Templates From 239a1762a0a0f081df1c7df4fda28230bce8366e Mon Sep 17 00:00:00 2001 From: Ryan Hidek Date: Sun, 30 Nov 2025 20:20:00 -0800 Subject: [PATCH 2/5] docs(philosophy): update SWC link away from archived repo to current location (#21173) --- guide/philosophy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/philosophy.md b/guide/philosophy.md index ccceeb70..fd2b8668 100644 --- a/guide/philosophy.md +++ b/guide/philosophy.md @@ -16,7 +16,7 @@ When adding new features, these patterns are followed to create a future-proof A ## A Pragmatic Approach to Performance -Vite has been focused on performance since its [origins](./why.md). Its dev server architecture allows HMR that stays fast as projects scale. Vite uses native tools like [esbuild](https://esbuild.github.io/) and [SWC](https://github.com/vitejs/vite-plugin-react-swc) to implement intensive tasks but keeps the rest of the code in JS to balance speed with flexibility. When needed, framework plugins will tap into [Babel](https://babeljs.io/) to compile user code. And during build time Vite currently uses [Rollup](https://rollupjs.org/) where bundling size and having access to a wide ecosystem of plugins are more important than raw speed. Vite will continue to evolve internally, using new libraries as they appear to improve DX while keeping its API stable. +Vite has been focused on performance since its [origins](./why.md). Its dev server architecture allows HMR that stays fast as projects scale. Vite uses native tools like [esbuild](https://esbuild.github.io/) and [SWC](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc) to implement intensive tasks but keeps the rest of the code in JS to balance speed with flexibility. When needed, framework plugins will tap into [Babel](https://babeljs.io/) to compile user code. And during build time Vite currently uses [Rollup](https://rollupjs.org/) where bundling size and having access to a wide ecosystem of plugins are more important than raw speed. Vite will continue to evolve internally, using new libraries as they appear to improve DX while keeping its API stable. ## Building Frameworks on Top of Vite From b1ec5b33e063f19c6ac15eec2c4920e89f0ae82e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 14:16:32 +0900 Subject: [PATCH 3/5] fix(deps): update all non-major dependencies (#21175) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com> --- .vitepress/theme/components/YouTubeVideo.vue | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.vitepress/theme/components/YouTubeVideo.vue b/.vitepress/theme/components/YouTubeVideo.vue index 59f05d56..7052904c 100644 --- a/.vitepress/theme/components/YouTubeVideo.vue +++ b/.vitepress/theme/components/YouTubeVideo.vue @@ -12,7 +12,14 @@ defineProps({ :src="`https://www.youtube.com/embed/${videoId}`" title="YouTube video player" frameborder="0" - allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" + allow=" + accelerometer; + autoplay; + clipboard-write; + encrypted-media; + gyroscope; + picture-in-picture; + " allowfullscreen > diff --git a/package.json b/package.json index dd5b7e5d..f345417c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "docs-serve": "vitepress serve" }, "devDependencies": { - "@shikijs/vitepress-twoslash": "^3.15.0", + "@shikijs/vitepress-twoslash": "^3.17.0", "@types/express": "^5.0.5", "feed": "^5.1.0", "gsap": "^3.13.0", From 169714b3bf5bd95ee1a8e54f95169594a02b4b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0?= Date: Tue, 2 Dec 2025 14:45:49 +0900 Subject: [PATCH 4/5] docs: clarify tsconfig resolution behavior (#21179) Co-authored-by: Bjorn Lu --- guide/features.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/features.md b/guide/features.md index c7caead3..b8bb9c17 100644 --- a/guide/features.md +++ b/guide/features.md @@ -53,6 +53,10 @@ export type { T } ### TypeScript Compiler Options +Vite respects some of the options in `tsconfig.json` and sets the corresponding esbuild options. For each file, Vite uses the `tsconfig.json` in the closest parent directory. If that `tsconfig.json` contains a [`references`](https://www.typescriptlang.org/tsconfig/#references) field, Vite will use the referenced config file that satisfies the [`include`](https://www.typescriptlang.org/tsconfig/#include) and [`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) fields. + +When the options are set in both the Vite config and the `tsconfig.json`, the value in the Vite config takes precedence. + Some configuration fields under `compilerOptions` in `tsconfig.json` require special attention. #### `isolatedModules` From ccae8c59e0809941514967a14be703a95f6e0246 Mon Sep 17 00:00:00 2001 From: Kylin <1159469891@qq.com> Date: Wed, 3 Dec 2025 15:45:05 +0800 Subject: [PATCH 5/5] docs: update content --- guide/features.md | 10 +++------- guide/index.md | 2 +- guide/philosophy.md | 6 +----- package.json | 24 ------------------------ 4 files changed, 5 insertions(+), 37 deletions(-) diff --git a/guide/features.md b/guide/features.md index 66cf44b5..4060fb83 100644 --- a/guide/features.md +++ b/guide/features.md @@ -53,15 +53,11 @@ export type { T } ### TypeScript 编译器选项 {#typescript-compiler-options} -<<<<<<< HEAD -`tsconfig.json` 中 `compilerOptions` 下的一些配置项需要特别注意。 -======= -Vite respects some of the options in `tsconfig.json` and sets the corresponding esbuild options. For each file, Vite uses the `tsconfig.json` in the closest parent directory. If that `tsconfig.json` contains a [`references`](https://www.typescriptlang.org/tsconfig/#references) field, Vite will use the referenced config file that satisfies the [`include`](https://www.typescriptlang.org/tsconfig/#include) and [`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) fields. +Vite 会参考 `tsconfig.json` 中的一些配置项,并设置相应的 esbuild 选项。对于每个文件,Vite 会使用距离最近的父级目录中的 `tsconfig.json`。如果该 `tsconfig.json` 包含 [`references`](https://www.typescriptlang.org/tsconfig/#references) 字段,Vite 将使用满足 [`include`](https://www.typescriptlang.org/tsconfig/#include) 和 [`exclude`](https://www.typescriptlang.org/tsconfig/#exclude) 字段的被引用配置文件。 -When the options are set in both the Vite config and the `tsconfig.json`, the value in the Vite config takes precedence. +当选项同时在 Vite 配置和 `tsconfig.json` 中设置时,Vite 配置中的值优先。 -Some configuration fields under `compilerOptions` in `tsconfig.json` require special attention. ->>>>>>> 169714b3bf5bd95ee1a8e54f95169594a02b4b48 +`tsconfig.json` 中 `compilerOptions` 下的一些配置项需要特别注意。 #### `isolatedModules` diff --git a/guide/index.md b/guide/index.md index b1e5aabc..c03e92b5 100644 --- a/guide/index.md +++ b/guide/index.md @@ -106,7 +106,7 @@ $ deno init --npm vite my-vue-app --template vue 你可以使用 `.` 作为项目名称,在当前目录中创建项目脚手架。 -To create a project without interactive prompts, you can use the `--no-interactive` flag. +要创建一个没有交互式提示的项目,你可以使用 `--no-interactive` 标志。 :::: diff --git a/guide/philosophy.md b/guide/philosophy.md index cd8c723e..4b061e43 100644 --- a/guide/philosophy.md +++ b/guide/philosophy.md @@ -16,11 +16,7 @@ Vite 提供了一系列推动编写现代代码的特定功能。例如: ## 旨在高性能的实用解决方案 {#a-pragmatic-approach-to-performance} -<<<<<<< HEAD -Vite 自其诞生之初(详见:[为什么选 Vite](./why.md))就一直致力于性能优化。其开发服务器架构设计确保了随着项目规模扩大,模块热替换(HMR)仍能保持高速运行。Vite 采用类似 [esbuild](https://esbuild.github.io/) 和 [SWC](https://github.com/vitejs/vite-plugin-react-swc) 这样的原生工具处理复杂的任务,同时将其他部分代码保留在 JavaScript 中,以实现速度与灵活性之间的平衡。在需要时,框架插件会利用 [Babel](https://babeljs.io/) 来编译用户代码。构建阶段,Vite 当前使用的是 [Rollup](https://cn.rollupjs.org/) ,此时包体积大小以及能够接入广泛生态系统的插件比原始速度更重要。Vite 将持续内部改进和发展,在新库出现时适时采用以提升开发者体验(DX),同时保持 API 的稳定性。 -======= -Vite has been focused on performance since its [origins](./why.md). Its dev server architecture allows HMR that stays fast as projects scale. Vite uses native tools like [esbuild](https://esbuild.github.io/) and [SWC](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc) to implement intensive tasks but keeps the rest of the code in JS to balance speed with flexibility. When needed, framework plugins will tap into [Babel](https://babeljs.io/) to compile user code. And during build time Vite currently uses [Rollup](https://rollupjs.org/) where bundling size and having access to a wide ecosystem of plugins are more important than raw speed. Vite will continue to evolve internally, using new libraries as they appear to improve DX while keeping its API stable. ->>>>>>> 169714b3bf5bd95ee1a8e54f95169594a02b4b48 +Vite 自其诞生之初(详见:[为什么选 Vite](./why.md))就一直致力于性能优化。其开发服务器架构设计确保了随着项目规模扩大,模块热替换(HMR)仍能保持高速运行。Vite 采用类似 [esbuild](https://esbuild.github.io/) 和 [SWC](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc) 这样的原生工具处理复杂的任务,同时将其他部分代码保留在 JavaScript 中,以实现速度与灵活性之间的平衡。在需要时,框架插件会利用 [Babel](https://babeljs.io/) 来编译用户代码。构建阶段,Vite 当前使用的是 [Rollup](https://cn.rollupjs.org/) ,此时包体积大小以及能够接入广泛生态系统的插件比原始速度更重要。Vite 将持续内部改进和发展,在新库出现时适时采用以提升开发者体验(DX),同时保持 API 的稳定性。 ## 基于 Vite 构建框架 {#building-frameworks-on-top-of-vite} diff --git a/package.json b/package.json index 02817d98..240a7608 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,4 @@ { -<<<<<<< HEAD "name": "vite-docs-cn", "version": "7.2.0", "description": "Vite.js documentation Chinese translation.", @@ -39,27 +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.17.0", - "@types/express": "^5.0.5", - "feed": "^5.1.0", - "gsap": "^3.13.0", - "markdown-it-image-size": "^15.0.1", - "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.5" - } ->>>>>>> 169714b3bf5bd95ee1a8e54f95169594a02b4b48 }