Env: Don't bundle sharp (sharp needs node, so serverside only)

This commit is contained in:
2024-12-23 16:15:27 +01:00
parent c77a1dd6d5
commit 325563394b
+8 -3
View File
@@ -1,6 +1,11 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [sveltekit()]
plugins: [sveltekit()],
build: {
rollupOptions: {
external: ["sharp"],
},
},
});