File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ Rolldown 集成打开了改进和优化的大门。以下是我们接下来要
131131
132132我们想要透明地对待 Vite 安装大小的变化。Vite 8 本身比 Vite 7 大约大 15 MB。这来自两个主要来源:
133133
134- - ** ~ 10 MB 来自 lightningcss** : 以前是一个可选的 peer 依赖项,lightningcss 现在是一个普通依赖项,提供更好的开箱即用的CSS 压缩。
134+ - ** ~ 10 MB 来自 lightningcss** : 以前是一个可选的 peer 依赖项,lightningcss 现在是一个普通依赖项,提供更好的开箱即用的 CSS 压缩。
135135- ** ~ 5 MB 来自 Rolldown** : Rolldown 二进制文件比 esbuild + Rollup 更大,主要是因为性能优化,更倾向于速度而不是二进制大小。
136136
137137随着 Rolldown 逐渐成熟,我们将继续密切关注并努力减少安装大小。
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ export default defineConfig({
251251
252252当值为字符串时,将用作相对于 ` build.outDir ` 的 manifest 文件路径。设置为 ` true ` 时,路径将是 ` .vite/manifest.json ` 。
253253
254- 如果您正在编写插件,并且需要在构建过程中检查每个输出块或资源的 CSS 和静态资源,您也可以使用 [ ` viteMetadata ` 构建输出元数据 API] ( /guide/api-plugin#output-bundle-metadata ) .
254+ 如果您正在编写插件,并且需要在构建过程中检查每个输出块或资源的 CSS 和静态资源,您也可以使用 [ ` viteMetadata ` 构建输出元数据 API] ( /guide/api-plugin#output-bundle-metadata ) 。
255255
256256## build.ssrManifest {#build-ssrmanifest}
257257
Original file line number Diff line number Diff line change @@ -200,13 +200,13 @@ import './Foo.js' // 应该为 './foo.js'
200200- ** 暂时保留旧的 chunks** : 考虑保留以前部署的块一段时间,以允许缓存的用户顺利过渡。
201201- ** 使用 service worker** : 实现一个 service worker, 它将预获取所有静态资源并缓存它们。
202202- ** Prefetch 动态 chunks** : 请注意,如果您的 HTML 文件由于 ` Cache-Control ` 标头而被浏览器缓存,则这无济于事
203- - ** 实现优雅的回退** : 实现优雅的回退实现动态导入的错误处理,以便在缺少块时重新加载页面。请参阅[ 加载错误处理] ( ./build.md#load-error-handling ) 以了解更多详细信息。
203+ - ** 实现优雅的回退** : 实现优雅的回退实现动态导入的错误处理,以便在缺少块时重新加载页面。请参阅 [ 加载错误处理] ( ./build.md#load-error-handling ) 以了解更多详细信息。
204204
205205#### 网络状况不佳 {#poor-network-conditions}
206206
207207此错误可能发生在网络不稳定的环境中。例如,由于网络错误或服务器停机导致请求失败。
208208
209- 请注意,由于浏览器限制,您无法重新尝试动态导入。 ( [ whatwg/html #6768 ] ( https://github.com/whatwg/html/issues/6768 ) ).
209+ 请注意,由于浏览器限制,您无法重新尝试动态导入( [ whatwg/html #6768 ] ( https://github.com/whatwg/html/issues/6768 ) )。
210210
211211#### 浏览器扩展阻止请求 {#browser-extensions-blocking-requests}
212212
You can’t perform that action at this time.
0 commit comments