Skip to content

Commit 55c6c7a

Browse files
committed
docs(cn): translate
1 parent bd10788 commit 55c6c7a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

guide/api-javascript.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,7 @@ function mergeConfig(
265265
深度合并两份配置。`isRoot` 代表着 Vite 配置被合并的层级。举个例子,如果你是要合并两个 `build` 选项请设为 `false`
266266

267267
::: tip NOTE
268-
`mergeConfig` accepts only config in object form. If you have a config in callback form, you should call it before passing into `mergeConfig`.
269-
:::
270-
271-
::: tip NOTE
272-
`mergeConfig` accepts only config in object form. If you have a config in callback form, you should call it before passing into `mergeConfig`.
268+
`mergeConfig` 只接受对象形式的配置。如果有一个回调形式的配置,应该在将其传递给 `mergeConfig` 之前先调用该回调函数,将其转换成对象形式。
273269
:::
274270

275271
## `searchForWorkspaceRoot`

0 commit comments

Comments
 (0)