From a4aa31e48e6dba39190d019194ce4a7410eb7caf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 13:10:08 +0900 Subject: [PATCH 1/4] fix(deps): update all non-major dependencies (#21540) 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 1a156435..d4d3307f 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "docs-serve": "vitepress serve" }, "devDependencies": { - "@shikijs/vitepress-twoslash": "^3.21.0", + "@shikijs/vitepress-twoslash": "^3.22.0", "@types/express": "^5.0.6", - "@voidzero-dev/vitepress-theme": "^4.3.0", + "@voidzero-dev/vitepress-theme": "^4.4.1", "feed": "^5.2.0", "markdown-it-image-size": "^15.0.1", "oxc-minify": "^0.111.0", From 607f9c329152ac033a2d878f17c04cbf7d903acd Mon Sep 17 00:00:00 2001 From: Adam Koppe Date: Mon, 2 Feb 2026 11:38:24 +0100 Subject: [PATCH 2/4] feat(manifest): add `assets` field for standalone CSS entry points (#21015) Co-authored-by: dalaoshu <165626830+shulaoda@users.noreply.github.com> --- guide/backend-integration.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/guide/backend-integration.md b/guide/backend-integration.md index a5bf910e..5aef4aa8 100644 --- a/guide/backend-integration.md +++ b/guide/backend-integration.md @@ -118,14 +118,10 @@ If you need a custom integration, you can follow the steps in this guide to conf file: string /** * The list of CSS files imported by this chunk - * - * This field is only present in JS chunks. */ css?: string[] /** * The list of asset files imported by this chunk, excluding CSS files - * - * This field is only present in JS chunks. */ assets?: string[] /** @@ -164,7 +160,7 @@ If you need a custom integration, you can follow the steps in this guide to conf - **Asset chunks**: Generated from imported assets like images, fonts. Their key is the relative src path from project root. - **CSS files**: When [`build.cssCodeSplit`](/config/build-options.md#build-csscodesplit) is `false`, a single CSS file is generated with the key `style.css`. When `build.cssCodeSplit` is not `false`, the key is generated similar to JS chunks (i.e. entry chunks will not have `_` prefix and non-entry chunks will have `_` prefix). - JS chunks (chunks other than assets or CSS) will contain information on their static and dynamic imports (both are keys that map to the corresponding chunk in the manifest), and also their corresponding CSS and asset files (if any). + JS chunks (chunks other than assets or CSS) will contain information on their static and dynamic imports (both are keys that map to the corresponding chunk in the manifest). Chunks also list their corresponding CSS and asset files if they have any. 4. You can use this file to render links or preload directives with hashed filenames. From 85cf8fba1a1e8cae070d2833ebb62a734e9a8afa Mon Sep 17 00:00:00 2001 From: waynzh Date: Tue, 3 Feb 2026 14:16:12 +0800 Subject: [PATCH 3/4] docs(cn): resolve conflicts --- guide/backend-integration.md | 37 +++++++++++------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/guide/backend-integration.md b/guide/backend-integration.md index a771ecfb..4bb30725 100644 --- a/guide/backend-integration.md +++ b/guide/backend-integration.md @@ -45,7 +45,6 @@ ``` 为了正确地提供资源,你有两种选项: - - 确保服务器被配置过,将会拦截代理资源请求给到 Vite 服务器 - 设置 [`server.origin`](/config/server-options.md#server-origin) 以求生成的资源链接将以服务器 URL 形式被解析而非一个相对路径 @@ -118,23 +117,11 @@ */ file: string /** -<<<<<<< HEAD * 该代码块导入的 CSS 文件列表 - * - * 此字段仅在 JS 代码块中存在。 */ css?: string[] /** * 该代码块导入的资源文件列表,不包括 CSS 文件 - * - * 此字段仅在 JS 代码块中存在。 -======= - * The list of CSS files imported by this chunk - */ - css?: string[] - /** - * The list of asset files imported by this chunk, excluding CSS files ->>>>>>> 607f9c329152ac033a2d878f17c04cbf7d903acd */ assets?: string[] /** @@ -166,18 +153,14 @@ } ``` -清单中的每个条目代表以下之一: -- **Entry chunks**:由 [`build.rollupOptions.input`](https://rollupjs.org/configuration-options/#input) 中指定的文件生成。这些块的 isEntry 属性设置为 true,其键值是项目根目录的相对 src 路径。 -- **Dynamic entry chunks**:由动态导入生成。这些块的 isDynamicEntry 属性设置为 true,其键值是项目根目录的相对 src 路径。 -- **Non-entry chunks**:其键值是生成文件的基本名称加上前缀 `_`。 -- **Asset chunks**:由导入的资源(例如图片、字体)生成。其键值是项目根目录的相对 src 路径。 -- **CSS 文件**:当 [`build.cssCodeSplit`](/config/build-options.md#build-csscodesplit) 为 `false` 时,将生成一个带有 `style.css` 键的 CSS 文件。当 `build.cssCodeSplit` 不为 `false` 时,键的生成方式与 JS 代码块类似(即,入口代码块不带 `_` 前缀,非入口代码块带 `_` 前缀)。 + 清单中的每个条目代表以下之一: + - **Entry chunks**:由 [`build.rollupOptions.input`](https://rollupjs.org/configuration-options/#input) 中指定的文件生成。这些块的 isEntry 属性设置为 true,其键值是项目根目录的相对 src 路径。 + - **Dynamic entry chunks**:由动态导入生成。这些块的 isDynamicEntry 属性设置为 true,其键值是项目根目录的相对 src 路径。 + - **Non-entry chunks**:其键值是生成文件的基本名称加上前缀 `_`。 + - **Asset chunks**:由导入的资源(例如图片、字体)生成。其键值是项目根目录的相对 src 路径。 + - **CSS 文件**:当 [`build.cssCodeSplit`](/config/build-options.md#build-csscodesplit) 为 `false` 时,将生成一个带有 `style.css` 键的 CSS 文件。当 `build.cssCodeSplit` 不为 `false` 时,键的生成方式与 JS 代码块类似(即,入口代码块不带 `_` 前缀,非入口代码块带 `_` 前缀)。 -<<<<<<< HEAD -JS 代码块(除了资源或 CSS 之外的代码块)将包含其静态和动态导入的信息(两者都是映射到清单中相应代码块的键),以及它们对应的 CSS 和资源文件(如果有)。 -======= - JS chunks (chunks other than assets or CSS) will contain information on their static and dynamic imports (both are keys that map to the corresponding chunk in the manifest). Chunks also list their corresponding CSS and asset files if they have any. ->>>>>>> 607f9c329152ac033a2d878f17c04cbf7d903acd + JS 代码块(除了资源或 CSS 之外的代码块)会包含其静态和动态导入的信息(两者都是映射到清单中相应代码块的键)。代码块还会列出其对应的 CSS 和资源文件(如果有的话)。 4. 你可以利用这个文件来渲染带有哈希文件名的链接或预加载指令。 @@ -204,9 +187,11 @@ JS 代码块(除了资源或 CSS 之外的代码块)将包含其静态和动 具体来说,后端生成 HTML 时,若给定一个清单文件(manifest file)和一个入口点(entry point),应包含以下标签。 注意,为获得最佳性能,建议遵循以下顺序: 1. 为入口点代码块的 `css` 列表中的每个文件添加 `` 标签(如果存在)。 - 2. 递归跟踪入口点 `imports` 列表中的所有代码块,并为每个导入代码块的 `css` 列表(如果存在)中的每个 CSS 文件添加 `` 标签。 + 2. 递归跟踪入口点 `imports` 列表中的所有代码块,并为每个导入代码块的 `css` 列表(如果存在)中的 + 每个 CSS 文件添加 `` 标签。 3. 为入口点代码块的 `file` 键添加一个标签。对于 JavaScript,可以是 `