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

This commit is contained in:
2024-12-15 23:52:07 +01:00
parent c77a1dd6d5
commit 325563394b

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"],
},
},
});