lingui documentation mentions that their plugin should be declared before the react compiler plugin

This commit is contained in:
Athou
2025-07-11 16:56:03 +02:00
parent e5fa517270
commit 163ab43da3

View File

@@ -10,7 +10,13 @@ export default defineConfig(() => ({
plugins: [
react({
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(),