Skip to content

Commit 011c4a2

Browse files
committed
fix: resolved conflict
1 parent d9ebaa8 commit 011c4a2

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

guide/api-environment-frameworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ app.use('*', async (req, res, next) => {
103103
})
104104
```
105105
106-
When using environments that support HMR (such as `RunnableDevEnvironment`), you should add `import.meta.hot.accept()` in your server entry file for optimal behavior. Without this, server file changes will invalidate the entire server module graph:
106+
在使用支持 HMR(如 `RunnableDevEnvironment`)的环境时,您应在服务器入口文件中添加 `import.meta.hot.accept()` 以获得最佳性能。若未添加此代码,服务器文件的更改将导致整个服务器模块图失效:
107107
108108
```js
109109
// src/entry-server.js

guide/features.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,7 @@ Vite 启动模板默认情况下会设置 `"skipLibCheck": "true"`,以避免
113113

114114
### 客户端类型 {#client-types}
115115

116-
<<<<<<< HEAD
117116
Vite 默认的类型定义是写给它的 Node.js API 的。要将其补充到一个 Vite 应用的客户端代码环境中,请添加一个 `d.ts` 声明文件:
118-
=======
119-
Vite's default types are for its Node.js API. To shim the environment of client-side code in a Vite application, add a `d.ts` declaration file:
120-
>>>>>>> 2075f317a396ad11714f57d2c754477c26a9d3f9
121117

122118
```typescript
123119
/// <reference types="vite/client" />

0 commit comments

Comments
 (0)