import { defineConfig } from "vite";

import react from "@vitejs/plugin-react";
import { visualizer } from "rollup-plugin-visualizer";

export default defineConfig(() => {
  return {
    build: {
      outDir: "build",
    },

    plugins: [
      react(),
      visualizer({
        filename: "./bundle-analysis.html", // Output file
        open: true, // Open the generated file automatically
      }),
    ],
  };
});
