Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: stylex dependency (#20759)

ecmadaob87999341cad
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 30e1b2e8a7..cb4317cc71 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -44,14 +44,15 @@ export default defineConfig({
return { code: result.code, map: result.map || null };
},
},
+ tailwindcss(),
stylex.vite({
- // Avoid the plugin's dev HTML injection: it inserts StyleX layers before
- // Tailwind, letting Preflight override control typography and padding.
+ // Keep StyleX after Tailwind so production extraction can append into the
+ // linked Vite CSS asset loaded by the main app.
+ cssInjectionTarget: (fileName) => /(^|\/)main-[^/]+\.css$/.test(fileName),
devMode: "css-only",
runtimeInjection: false,
useCSSLayers: true,
}),
- tailwindcss(),
yaml(),
...(process.env.VITEST
? []