We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd10788 commit 55c6c7aCopy full SHA for 55c6c7a
guide/api-javascript.md
@@ -265,11 +265,7 @@ function mergeConfig(
265
深度合并两份配置。`isRoot` 代表着 Vite 配置被合并的层级。举个例子,如果你是要合并两个 `build` 选项请设为 `false`。
266
267
::: 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` 只接受对象形式的配置。如果有一个回调形式的配置,应该在将其传递给 `mergeConfig` 之前先调用该回调函数,将其转换成对象形式。
273
:::
274
275
## `searchForWorkspaceRoot`
0 commit comments