Env: Don't bundle sharp (sharp needs node, so serverside only)
This commit is contained in:
@ -1,6 +1,11 @@
|
|||||||
import { sveltekit } from '@sveltejs/kit/vite';
|
import { sveltekit } from "@sveltejs/kit/vite";
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from "vite";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [sveltekit()]
|
plugins: [sveltekit()],
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
external: ["sharp"],
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user