From be38eaf9ee6d50fbc0a0320f89c71a336f22e94f Mon Sep 17 00:00:00 2001 From: dalaoshu <165626830+shulaoda@users.noreply.github.com> Date: Thu, 18 Dec 2025 09:39:11 +0800 Subject: [PATCH 1/4] feat: update rolldown to 1.0.0-beta.55 (#21300) Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 575a40ab..3af9969e 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "feed": "^5.1.0", "gsap": "^3.14.2", "markdown-it-image-size": "^15.0.1", - "oxc-minify": "^0.102.0", + "oxc-minify": "^0.103.0", "vitepress": "^2.0.0-alpha.15", "vitepress-plugin-group-icons": "^1.6.5", "vitepress-plugin-llms": "^1.9.3", From 26482f21530005c033adcafee4085154ace06a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0?= Date: Thu, 18 Dec 2025 13:03:45 +0900 Subject: [PATCH 2/4] docs(config): add `build.license` comment example (#21302) --- config/build-options.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/config/build-options.md b/config/build-options.md index 1a837b32..c8268739 100644 --- a/config/build-options.md +++ b/config/build-options.md @@ -223,6 +223,30 @@ If `fileName` is passed, it will be used as the license file name relative to th ] ``` +::: tip + +If you'd like to reference the license file in the built code, you can use `build.rolldownOptions.output.postBanner` to inject a comment at the top of the files. For example: + + + +```js twoslash [vite.config.js] +import { defineConfig } from 'vite' + +export default defineConfig({ + build: { + license: true, + rollupOptions: { + output: { + postBanner: + '/* See licenses of bundled dependencies at https://example.com/license.md */', + }, + }, + }, +}) +``` + +::: + ## build.manifest - **Type:** `boolean | string` From f87391961649d638491342dece2746f80fe2d29d Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 18 Dec 2025 14:48:01 +0800 Subject: [PATCH 3/4] docs: replace `rollupOptions` with `rolldownOptions` (#21307) --- config/build-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/build-options.md b/config/build-options.md index c8268739..3715efbf 100644 --- a/config/build-options.md +++ b/config/build-options.md @@ -235,7 +235,7 @@ import { defineConfig } from 'vite' export default defineConfig({ build: { license: true, - rollupOptions: { + rolldownOptions: { output: { postBanner: '/* See licenses of bundled dependencies at https://example.com/license.md */', From 22755a7d47c9b36528e138ed5d8ca3244725c9b6 Mon Sep 17 00:00:00 2001 From: Kylin <1159469891@qq.com> Date: Fri, 19 Dec 2025 10:17:54 +0800 Subject: [PATCH 4/4] docs: update content --- config/build-options.md | 8 ++------ package.json | 25 ------------------------- 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/config/build-options.md b/config/build-options.md index 4bb027e2..82e606aa 100644 --- a/config/build-options.md +++ b/config/build-options.md @@ -223,12 +223,9 @@ export default defineConfig({ ] ``` -<<<<<<< HEAD -## build.manifest {#build-manifest} -======= ::: tip -If you'd like to reference the license file in the built code, you can use `build.rolldownOptions.output.postBanner` to inject a comment at the top of the files. For example: +如果你想在构建后的代码中引用许可文件,可以使用 `build.rolldownOptions.output.postBanner` 在文件顶部注入注释。例如: @@ -250,8 +247,7 @@ export default defineConfig({ ::: -## build.manifest ->>>>>>> f87391961649d638491342dece2746f80fe2d29d +## build.manifest {#build-manifest} - **类型:** `boolean | string` - **默认:** `false` diff --git a/package.json b/package.json index c65c9e19..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.103.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" - } ->>>>>>> f87391961649d638491342dece2746f80fe2d29d }