Skip to content

Commit 0307381

Browse files
fix: some format issue
1 parent a1e894e commit 0307381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guide/assets.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ const imgUrl = new URL(imagePath, import.meta.url).href
114114
如果你正在以服务端渲染模式使用 Vite 则此模式不支持,因为 `import.meta.url` 在浏览器和 Node.js 中有不同的语义。服务端的产物也无法预先确定客户端主机 URL。
115115
:::
116116
117-
::: warning 注意:Esbuild 目标配置是必要的
118-
这种模式需要把esbuild构建目标设置为 `es2020` 或更高版本,`[email protected]` 默认使用 `es2019` 作为构建目标,如果你打算使用这种模式请设置 [build-target](https://cn.vitejs.dev/config/#build-target) 和 [optimizedeps.esbuildoptions.target](https://cn.vitejs.dev/config/#optimizedeps-esbuildoptions)为 `es2020` 或更高版本
117+
::: warning 注意:esbuild 目标配置是必要的
118+
这种模式需要把 esbuild 构建目标设置为 `es2020` 或更高版本,`[email protected]` 默认使用 `es2019` 作为构建目标,如果你打算使用这种模式请设置 [build-target](https://cn.vitejs.dev/config/#build-target) 和 [optimizedeps.esbuildoptions.target](https://cn.vitejs.dev/config/#optimizedeps-esbuildoptions)为 `es2020` 或更高版本
119119
:::

0 commit comments

Comments
 (0)