forked from Archives/Athou_commafeed
lingui documentation mentions that their plugin should be declared before the react compiler plugin
This commit is contained in:
@@ -10,7 +10,13 @@ export default defineConfig(() => ({
|
|||||||
plugins: [
|
plugins: [
|
||||||
react({
|
react({
|
||||||
babel: {
|
babel: {
|
||||||
plugins: [["babel-plugin-react-compiler", { target: "19" }], "@lingui/babel-plugin-lingui-macro"],
|
plugins: [
|
||||||
|
// support for lingui macros
|
||||||
|
// needs to be before the react compiler plugin
|
||||||
|
"@lingui/babel-plugin-lingui-macro",
|
||||||
|
// react compiler
|
||||||
|
["babel-plugin-react-compiler", { target: "19" }],
|
||||||
|
],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
lingui(),
|
lingui(),
|
||||||
|
|||||||
Reference in New Issue
Block a user