Files
client/frontend/vite.config.js
2026-03-08 23:00:03 +01:00

28 lines
545 B
JavaScript

import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
export default defineConfig({
plugins: [
svelte({
compilerOptions: {
customElement: true,
},
}),
],
build: {
lib: {
entry: "src/main.js",
formats: ["iife"],
name: "ForageComponents",
fileName: () => "forage-components.js",
},
outDir: "../static/js/components",
emptyOutDir: true,
rollupOptions: {
output: {
inlineDynamicImports: true,
},
},
},
});