Skip to content

Commit 34a3975

Browse files
authored
release: v2.7.3
2 parents 28eb01c + b097275 commit 34a3975

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

guide/features.md

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ const modules = {
296296
- 该 Glob 模式会被当成导入标识符:必须是相对路径(以 `./` 开头)或绝对路径(以 `/` 开头,相对于项目根目录解析)。
297297
- Glob 匹配是使用 `fast-glob` 来实现的 —— 阅读它的文档来查阅 [支持的 Glob 模式](https://github.com/mrmlnc/fast-glob#pattern-syntax)
298298
- 你还需注意,glob 的导入不接受变量,你应直接传递字符串模式。
299+
- glob 模式不能包含与包裹引号相同的引号字符串(其中包括 `'``"``` ` ``),例如,如果你想实现 `'/Tom\'s files/**'` 的效果,请使用 `"/Tom's files/**"` 代替。
299300

300301
## WebAssembly {#webassembly}
301302

guide/ssr.md

+2-7
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,8 @@ async function createServer() {
7777
// 以中间件模式创建 Vite 应用,这将禁用 Vite 自身的 HTML 服务逻辑
7878
// 并让上级服务器接管控制
7979
//
80-
<<<<<<< HEAD
81-
// 如果你想使用 Vite 自己的 HTML 服务逻辑(将 Vite 作为
82-
// 一个开发中间件来使用),那么这里请用 'html'
83-
=======
84-
// In middleware mode, if you want to use Vite's own HTML serving logic
85-
// use `'html'` as the `middlewareMode` (ref https://vitejs.dev/config/#server-middlewaremode)
86-
>>>>>>> 7ee013df1d23732b3f0f880c414c161ad21657f5
80+
// 在中间件模式下,如果你想使用 Vite 自带的 HTML 服务
81+
// 请将 `middlewareMode` 设置为 `'html'` (具体请参考 https://cn.vitejs.dev/config/#server-middlewaremode)
8782
const vite = await createViteServer({
8883
server: { middlewareMode: 'ssr' }
8984
})

0 commit comments

Comments
 (0)