import { defineConfig } from 'vite';

export default defineConfig({
  build: {
    outDir: 'frontend/dist',
    emptyOutDir: true,
    lib: {
      entry: 'frontend/auth.ts',
      name: 'AuthModule',
      fileName: () => 'auth.js',
      formats: ['umd']
    }
  },
  server: {
    middlewareMode: true
  }
});
