22 lines
543 B
TypeScript
22 lines
543 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react({
|
|
babel: {
|
|
plugins: [['babel-plugin-react-compiler']],
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'@ui': fileURLToPath(new URL('./src/components/ui', import.meta.url)),
|
|
'@lib': fileURLToPath(new URL('./src/lib', import.meta.url)),
|
|
},
|
|
},
|
|
})
|