import { join } from "node:path"; import { defineConfig } from 'vite' import react from '@vitejs/plugin-react-swc' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], resolve: { alias: [ { find: /^~(.+)/, replacement: join(process.cwd(), 'node_modules/$1'), }, { find: /^src(.+)/, replacement: join(process.cwd(), 'src/$1'), }, ] }, })