import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { viteBaseConfig } from "./vite.base";

export default defineConfig({
  ...viteBaseConfig,
  build: {
    ...viteBaseConfig.build,
    rollupOptions: {
      ...viteBaseConfig.build.rollupOptions,
      input: undefined,
    },
    lib: {
      entry: 'src/formationen.ts',
      name: 'tdFormationen',
      formats: ['iife'],
      fileName: 'formationen.js',
    }
  }
})
