import { fileURLToPath } from 'node:url'; import react from '@vitejs/plugin-react-swc'; import { defineConfig } from 'vite'; import svgr from 'vite-plugin-svgr'; // https://vitejs.dev/config/ // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), svgr()], base: './', resolve: { alias: { // 알림은 부모 페이지 토스트로 넘긴다 — 호출부 30여 곳을 그대로 두려고 // 라이브러리 자리만 바꿔 끼운다(2026-08-30 사용자 지시). 'react-toastify': fileURLToPath(new URL('./src/helpers/toast-bridge.ts', import.meta.url)), }, }, build: { outDir: 'dist', }, });