fix: disable react compiler in tests

This commit is contained in:
Julian Sommer
2026-08-24 09:26:41 +10:00
parent 1d7f2f066a
commit 2d925190dc
@@ -19,7 +19,7 @@ logger.warn = (msg, options) => {
warn(msg, options)
}
export default defineConfig({
export default defineConfig(({ mode }) => ({
customLogger: logger,
envDir: "../",
build: {
@@ -40,7 +40,7 @@ export default defineConfig({
autoCodeSplitting: true,
routeFileIgnorePattern: "\\.test\\.(ts|tsx)$",
}),
react({ compiler: true }),
react({ compiler: mode !== "test" }),
tailwindcss(),
],
resolve: {
@@ -71,4 +71,4 @@ export default defineConfig({
},
},
},
})
}))