Skip to content

Commit

Permalink
docs(swc-plugin): Fix .swcrc jsc.experimental.plugins structure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
stovmascript authored Feb 17, 2023
1 parent 4302922 commit 34e14cd
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions website/docs/ref/swc-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@ Add the following configuration to your [`.swcrc`](https://swc.rs/docs/configura
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"experimental": {
"plugins": ["@lingui/swc-plugin", {

// Optional
// Unlike the JS version this option must be passed as object only.
// Docs https://lingui.js.org/ref/conf.html#std-config-runtimeConfigModule
// "runtimeModules": {
// "i18n": ["@lingui/core", "i18n"],
// "trans": ["@lingui/react", "Trans"]
// }
}]
}
}
"plugins": [
[
"@lingui/swc-plugin",
{
// Optional
// Unlike the JS version this option must be passed as object only.
// Docs https://lingui.dev/ref/conf#runtimeconfigmodule
// "runtimeModules": {
// "i18n": ["@lingui/core", "i18n"],
// "trans": ["@lingui/react", "Trans"]
// }
},
],
],
},
},
}
```

Expand Down

1 comment on commit 34e14cd

@vercel
Copy link

@vercel vercel bot commented on 34e14cd Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.