Skip to content

Commit

Permalink
docs(javascript-api): fix defineConfig parameters in English document…
Browse files Browse the repository at this point in the history
…ation (#4413)
  • Loading branch information
hasnum-stack authored Jan 22, 2025
1 parent e301294 commit a4cf056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/en/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({
In the `defineConfig` configuration function, you can access the `foo` variable through the `meta` object:

```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 a4cf056

Please sign in to comment.