Skip to content

Commit

Permalink
docs(javascript-api): fix defineConfig parameters (#4412)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasnum-stack authored Jan 22, 2025
1 parent 3ff1544 commit e301294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/zh/api/javascript-api/core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit e301294

Please sign in to comment.