import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig(({ mode }) => ({
  plugins: [react()],
  resolve: {
    alias: mode === "bench"
      ? [
        { find: /^react-dom\/client$/, replacement: "react-dom/profiling" },
      ]
      : [],
  },
}));
