Public Access
24 lines
458 B
TypeScript
24 lines
458 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
|
import babel from '@rolldown/plugin-babel'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
babel({ presets: [reactCompilerPreset()] })
|
|
],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3001',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
globals: true,
|
|
},
|
|
})
|
|
|