Skip to content

Commit 9d0c52d

Browse files
author
李瑞丰
authored
docs(cn): optimize translation to make it more fluent (#231)
1 parent 915d11d commit 9d0c52d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guide/features.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import { someMethod } from 'my-dep'
1212

1313
上面的代码会在浏览器中抛出一个错误。Vite 将会检测到所有被加载的源文件中的此类裸模块导入,并执行以下操作:
1414

15-
1. [预构建](./dep-pre-bundling) 它们以加快页面加载速度,并将 CommonJS / UMD 转换为 ESM 格式。预构建这一步由 [esbuild](http://esbuild.github.io/) 执行,这使得 Vite 的冷启动时间比任何基于 JavaScript 的打包器都要快得多。
15+
1. [预构建](./dep-pre-bundling) 它们可以提高页面加载速度,并将 CommonJS / UMD 转换为 ESM 格式。预构建这一步由 [esbuild](http://esbuild.github.io/) 执行,这使得 Vite 的冷启动时间比任何基于 JavaScript 的打包器都要快得多。
1616

1717
2. 重写导入为合法的 URL,例如 `/node_modules/.vite/my-dep.js?v=f3sf2ebd` 以便浏览器能够正确导入它们。
1818

1919
**依赖是强缓存的**
2020

21-
Vite 通过 HTTP 头来缓存请求得到的依赖,所以如果你想要编辑或调试一个依赖,请跟随 [这里](./dep-pre-bundling#浏览器缓存) 的步骤
21+
Vite 通过 HTTP 头来缓存请求得到的依赖,所以如果你想要编辑或调试一个依赖,请按照 [这里](./dep-pre-bundling#浏览器缓存) 的步骤操作
2222

2323
## 模块热重载 {#hot-module-replacement}
2424

0 commit comments

Comments
 (0)