import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [svelte()],
  server: {
    // Configuration pour le mode histoire
    historyApiFallback: true
  },
  // Pour le build de production, configurer la gestion des routes
  build: {
    rollupOptions: {
      output: {
        manualChunks: undefined,
      },
    },
  },
})
