fix(vite): get radix-ui working (#3344)

This commit is contained in:
Marvin Hagemeister
2025-09-05 16:51:22 +02:00
committed by GitHub
parent b06ef5a855
commit 185ab95751
7 changed files with 992 additions and 10 deletions
+7
View File
@@ -113,6 +113,13 @@ export function fresh(config?: FreshViteConfig): Plugin[] {
outDir: config.environments?.ssr?.build?.outDir ??
"_fresh/server",
rollupOptions: {
onwarn(warning, handler) {
// Ignore "use client"; warnings
if (warning.code === "MODULE_LEVEL_DIRECTIVE") {
return;
}
return handler(warning);
},
input: {
"server-entry": "fresh:server_entry",
},