fix website build (#8559)

* fiux

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
pngwn 2024-06-15 10:44:57 +01:00 committed by GitHub
parent b842f27c80
commit 483ecaae62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
"website": patch
---
fix:fix website build

View File

@ -1,6 +1,7 @@
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import { inject_component_loader } from "../app/build_plugins";
export default defineConfig({
plugins: [sveltekit()]
});
export default defineConfig(({ mode }) => ({
plugins: [sveltekit(), inject_component_loader({ mode })]
}));