diff --git a/commafeed-client/vite.config.ts b/commafeed-client/vite.config.ts index 0ad960ec..ba6f0ec3 100644 --- a/commafeed-client/vite.config.ts +++ b/commafeed-client/vite.config.ts @@ -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(),