chat-ui / vite.config.ts
nsarrazin's picture
nsarrazin HF staff
make dynamically imported lib optimize on startup (#653)
2fda730 unverified
raw
history blame
290 Bytes
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import Icons from "unplugin-icons/vite";
export default defineConfig({
plugins: [
sveltekit(),
Icons({
compiler: "svelte",
}),
],
optimizeDeps: {
include: ["browser-image-resizer"],
},
});