File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Vite 通过 HTTP 头来缓存请求得到的依赖,所以如果你想要编辑
22
22
23
23
## 模块热重载 {#hot-module-replacement}
24
24
25
- Vite 提供了一套原生 ESM 的 [ HMR API] ( ./api-hmr ) 。 具有 HMR 功能的框架可以利用该 API 提供即时、准确的更新,而无需重新加载页面或清除应用程序状态。Vite 内置了 HMR 到 [ Vue 单文件组件(SFC)] ( https://github.com/vitejs/vite/tree/main/packages/plugin-vue ) 和 [ React Fast Refresh] ( https://github.com/vitejs/vite/tree/main/packages/plugin-react-refresh ) 中。也通过 [ @prefresh/vite ] ( https://github.com/JoviDeCroock/prefresh/tree/main/packages/vite ) 对 Preact 实现了官方集成。
25
+ Vite 提供了一套原生 ESM 的 [ HMR API] ( ./api-hmr ) 。 具有 HMR 功能的框架可以利用该 API 提供即时、准确的更新,而无需重新加载页面或清除应用程序状态。Vite 内置了 HMR 到 [ Vue 单文件组件(SFC)] ( https://github.com/vitejs/vite/tree/main/packages/plugin-vue ) 和 [ React Fast Refresh] ( https://github.com/vitejs/vite/tree/main/packages/plugin-react ) 中。也通过 [ @prefresh/vite ] ( https://github.com/JoviDeCroock/prefresh/tree/main/packages/vite ) 对 Preact 实现了官方集成。
26
26
27
27
注意,你不需要手动设置这些 —— 当你通过 [ ` create-vite ` ] ( ./ ) 创建应用程序时,所选模板已经为你预先配置了这些。
28
28
You can’t perform that action at this time.
0 commit comments