15 lines
312 B
TypeScript
15 lines
312 B
TypeScript
import { sveltekit } from "@sveltejs/kit/vite";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit()],
|
|
ssr: {
|
|
noExternal: process.env.NODE_ENV === "production" ? ["@carbon/charts"] : [],
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
external: ["sharp"],
|
|
},
|
|
},
|
|
});
|