Update
This commit is contained in:
@@ -4,6 +4,9 @@ import react from '@vitejs/plugin-react';
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({ command }) => ({
|
||||
plugins: [react()],
|
||||
define: {
|
||||
'process.env': {},
|
||||
},
|
||||
resolve: {
|
||||
// new URL is pure ESM — no __dirname needed, no @types/node required
|
||||
alias: { '@': new URL('./src', import.meta.url).pathname },
|
||||
|
||||
Reference in New Issue
Block a user