import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import jotaiDebugLabel from 'jotai/babel/plugin-debug-label' import jotaiReactRefresh from 'jotai/babel/plugin-react-refresh' import path from 'node:path' import svgr from 'vite-plugin-svgr' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react({ babel: { plugins: [jotaiDebugLabel, jotaiReactRefresh] } }), svgr()], build: { outDir: 'build', }, define: { REACT_APP_DEPLOY_ENV: JSON.stringify(process.env.REACT_APP_DEPLOY_ENV), }, resolve: { alias: { '@': path.resolve(__dirname, 'src'), }, }, })