Skip to content

Commit 4d45e20

Browse files
committed
Merge branch 'sync-docs' of https://github.com/vitejs/docs-cn into sync-fc91e542-1
2 parents 76e10b5 + fc91e54 commit 4d45e20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guide/assets.md

+4
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ const imgUrl = new URL(imagePath, import.meta.url).href
113113
::: warning 注意:无法在 SSR 中使用
114114
如果你正在以服务端渲染模式使用 Vite 则此模式不支持,因为 `import.meta.url` 在浏览器和 Node.js 中有不同的语义。服务端的产物也无法预先确定客户端主机 URL。
115115
:::
116+
117+
::: warning Esbuild target config is necessary
118+
This pattern needs esbuild target to be set to `es2020` or higher. `[email protected]` use `es2019` as default target. Set [build-target](https://vitejs.dev/config/#build-target) and [optimizedeps.esbuildoptions.target](https://vitejs.dev/config/#optimizedeps-esbuildoptions) to `es2020` or higher if you intend to use this partten.
119+
:::

0 commit comments

Comments
 (0)