From e301294928e20e6f964ea85c7290a1caf49123b9 Mon Sep 17 00:00:00 2001 From: hasnum <49703360+hasnum-stack@users.noreply.github.com> Date: Wed, 22 Jan 2025 17:33:51 +0800 Subject: [PATCH] docs(javascript-api): fix defineConfig parameters (#4412) --- website/docs/zh/api/javascript-api/core.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/zh/api/javascript-api/core.mdx b/website/docs/zh/api/javascript-api/core.mdx index 971ec46280..fed60fa461 100644 --- a/website/docs/zh/api/javascript-api/core.mdx +++ b/website/docs/zh/api/javascript-api/core.mdx @@ -110,7 +110,7 @@ const { content } = await loadConfig({ 在 `defineConfig` 定义的配置函数中,你可以通过 `meta` 对象访问到 `foo` 变量: ```ts title="rsbuild.config.ts" -export default defineConfig((config, { meta }) => { +export default defineConfig(({ meta }) => { console.log(meta.foo); // bar return config; });