import path from "node:path"; import { fileURLToPath } from "node:url"; import react from "@vitejs/plugin-react"; import { defineConfig } from "vite"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); export default defineConfig({ base: "./", plugins: [ react({ babel: { plugins: [["babel-plugin-react-compiler"]], }, }), ], resolve: { alias: { "~": path.resolve(__dirname, "."), }, }, });