import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import { resolve } from "path"; // https://vitejs.dev/config/ export default defineConfig({ build: { target: "esnext", }, plugins: [react()], resolve: { alias: { "@": resolve(__dirname, "./src"), }, }, server: { port: 7860, host: true, }, preview: { port: 7860 } });