Skip to content

Commit 026ce7a

Browse files
authored
Merge pull request #1612 from vitejs/dev
d2m
2 parents c5d3b8c + 7e03a72 commit 026ce7a

6 files changed

Lines changed: 193 additions & 161 deletions

File tree

.vitepress/theme/landing/Community.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const testimonials: Testimonial[] = [
105105
>
106106
<!-- GitHub Stars -->
107107
<div class="flex flex-col gap-3">
108-
<h2 class="text-white">75k+</h2>
108+
<h2 class="text-white">80k+</h2>
109109
<p class="text-grey flex items-center gap-2">
110110
<Icon icon="simple-icons:github" width="20px" height="20px" />
111111
Github Stars
@@ -114,7 +114,7 @@ const testimonials: Testimonial[] = [
114114

115115
<!-- NPM Downloads -->
116116
<div class="flex flex-col gap-3">
117-
<h2 class="text-white">40m+</h2>
117+
<h2 class="text-white">80m+</h2>
118118
<p class="text-grey">每周 NPM 下载量</p>
119119
</div>
120120
</div>

guide/cli.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,30 @@ vite build [root]
4848

4949
#### 选项 {#options-1}
5050

51-
| 选项 | |
52-
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
53-
| `--target <target>` | 编译目标(默认为:`"modules"`)(`string`) |
54-
| `--outDir <dir>` | 输出目录(默认为:`dist`)(`string`) |
55-
| `--assetsDir <dir>` | 在输出目录下放置资源的目录(默认为:`"assets"`)(`string`) |
56-
| `--assetsInlineLimit <number>` | 静态资源内联为 base64 编码的阈值,以字节为单位(默认为:`4096`)(`number`) |
57-
| `--ssr [entry]` | 为服务端渲染配置指定入口文件 (`string`) |
58-
| `--sourcemap [output]` | 构建后输出 source map 文件(默认为:`false`)(`boolean \| "inline" \| "hidden"`) |
59-
| `--minify [minifier]` | 允许或禁用最小化混淆,或指定使用哪种混淆器(默认为:`"esbuild"`)(`boolean \| "terser" \| "esbuild"`) |
60-
| `--manifest [name]` | 构建后生成 manifest.json 文件 (`boolean \| string`) |
61-
| `--ssrManifest [name]` | 构建后生成 SSR manifest.json 文件 (`boolean \| string`) |
62-
| `--emptyOutDir` | 若输出目录在根目录外,强制清空输出目录 (`boolean`) |
63-
| `-w, --watch` | 在磁盘中模块发生变化时,重新构建 (`boolean`) |
64-
| `-c, --config <file>` | 使用指定的配置文件 (`string`) |
65-
| `--base <path>` | 公共基础路径(默认为:`/`)(`string`) |
66-
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
67-
| `--clearScreen` | 允许或禁用打印日志时清除屏幕 (`boolean`) |
68-
| `--configLoader <loader>` | 使用 `bundle` 来采用 Rolldown 打包配置,或是 `runner`(实验性)来在运行时处理,或者使用原生运行时加载 `native`(实验性),默认是 `bundle` |
69-
| `--profile` | 启动内置的 Node.js 调试器(查看 [性能瓶颈](/guide/troubleshooting#performance-bottlenecks)|
70-
| `-d, --debug [feat]` | 显示调试日志 (`string \| boolean`) |
71-
| `-f, --filter <filter>` | 过滤调试日志 (`string`) |
72-
| `-m, --mode <mode>` | 设置环境模式 (`string`) |
73-
| `-h, --help` | 显示可用的 CLI 选项 |
74-
| `--app` | 构建所有环境,这与 `builder: {}` 是一样的(`boolean`,实验性) |
51+
| 选项 | |
52+
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
53+
| `--target <target>` | 编译目标(默认为:`"baseline-widely-available"`)(`string`) |
54+
| `--outDir <dir>` | 输出目录(默认为:`dist`)(`string`) |
55+
| `--assetsDir <dir>` | 在输出目录下放置资源的目录(默认为:`"assets"`)(`string`) |
56+
| `--assetsInlineLimit <number>` | 静态资源内联为 base64 编码的阈值,以字节为单位(默认为:`4096`)(`number`) |
57+
| `--ssr [entry]` | 为服务端渲染配置指定入口文件 (`string`) |
58+
| `--sourcemap [output]` | 构建后输出 source map 文件(默认为:`false`)(`boolean \| "inline" \| "hidden"`) |
59+
| `--minify [minifier]` | 允许或禁用最小化混淆,或指定使用哪种混淆器(默认为:`"oxc"`)(`boolean \| "oxc" \| "terser" \| "esbuild"`) |
60+
| `--manifest [name]` | 构建后生成 manifest.json 文件 (`boolean \| string`) |
61+
| `--ssrManifest [name]` | 构建后生成 SSR manifest.json 文件 (`boolean \| string`) |
62+
| `--emptyOutDir` | 若输出目录在根目录外,强制清空输出目录 (`boolean`) |
63+
| `-w, --watch` | 在磁盘中模块发生变化时,重新构建 (`boolean`) |
64+
| `-c, --config <file>` | 使用指定的配置文件 (`string`) |
65+
| `--base <path>` | 公共基础路径(默认为:`/`)(`string`) |
66+
| `-l, --logLevel <level>` | Info \| warn \| error \| silent (`string`) |
67+
| `--clearScreen` | 允许或禁用打印日志时清除屏幕 (`boolean`) |
68+
| `--configLoader <loader>` | 使用 `bundle` 来采用 Rolldown 打包配置,或是 `runner`(实验性)来在运行时处理,默认是 `bundle` |
69+
| `--profile` | 启动内置的 Node.js 调试器(查看 [性能瓶颈](/guide/troubleshooting#performance-bottlenecks) |
70+
| `-d, --debug [feat]` | 显示调试日志 (`string \| boolean`) |
71+
| `-f, --filter <filter>` | 过滤调试日志 (`string`) |
72+
| `-m, --mode <mode>` | 设置环境模式 (`string`) |
73+
| `-h, --help` | 显示可用的 CLI 选项 |
74+
| `--app` | 构建所有环境,这与 `builder: {}` 是一样的(`boolean`,实验性) |
7575

7676
## 其他 {#others}
7777

guide/migration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ const plugin = {
368368
- `renderDynamicImport` 钩子 ([rolldown#4532](https://github.com/rolldown/rolldown/issues/4532))
369369
- `resolveFileUrl` 钩子
370370
- `parseAst` / `parseAstAsync` 函数现在已被弃用,推荐使用功能更多的 `parseSync` / `parse` 函数。
371+
- 注释会在 `renderChunk` 钩子之前被移除,而不是之后
372+
- [此处](https://rolldown.rs/reference/OutputOptions.comments) 列出之外的注释都会被移除,而 Rollup 只会在相邻代码被移除时才删除注释
371373

372374
## 从 v6 迁移 {#migration-from-v6}
373375

guide/static-deploy-github-pages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup Pages
4747
uses: actions/configure-pages@v6
4848
- name: Upload artifact
49-
uses: actions/upload-pages-artifact@v4
49+
uses: actions/upload-pages-artifact@v5
5050
with:
5151
# 上传 dist 文件夹
5252
path: './dist'

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
"@types/node": "^25.0.10",
1616
"@voidzero-dev/vitepress-theme": "^4.8.4",
1717
"chalk": "^5.6.2",
18-
"feed": "^5.2.0",
18+
"feed": "^5.2.1",
1919
"gray-matter": "^4.0.3",
2020
"gsap": "^3.14.2",
2121
"lodash": "^4.17.23",
2222
"markdown-it-image-size": "^15.0.1",
2323
"vite": "^7.3.1",
2424
"vitepress": "2.0.0-alpha.17",
25-
"vitepress-plugin-graphviz": "^0.0.1",
26-
"vitepress-plugin-group-icons": "^1.7.3",
27-
"vue": "^3.5.31",
28-
"vue-tsc": "^3.2.6",
25+
"vitepress-plugin-graphviz": "^0.1.0",
26+
"vitepress-plugin-group-icons": "^1.7.5",
27+
"vue": "^3.5.32",
28+
"vue-tsc": "^3.2.7",
2929
"yorkie": "^2.0.0"
3030
},
3131
"packageManager": "pnpm@9.6.0",

0 commit comments

Comments
 (0)