Spaces:
Build error
Build error
| import { defineConfig } from 'vite'; | |
| import react from '@vitejs/plugin-react'; | |
| import path from 'path'; | |
| export default defineConfig({ | |
| plugins: [react()], | |
| resolve: { | |
| alias: { | |
| '@': path.resolve(__dirname, './src'), | |
| '@schema': path.resolve(__dirname, './src/schema'), | |
| '@components': path.resolve(__dirname, './src/components'), | |
| '@core': path.resolve(__dirname, './src/core'), | |
| '@utils': path.resolve(__dirname, './src/utils'), | |
| }, | |
| }, | |
| server: { | |
| port: 3000, | |
| open: true, | |
| }, | |
| build: { | |
| sourcemap: true, | |
| rollupOptions: { | |
| output: { | |
| manualChunks: { | |
| three: ['three'], | |
| react: ['react', 'react-dom'], | |
| r3f: ['@react-three/fiber', '@react-three/drei'], | |
| }, | |
| }, | |
| }, | |
| }, | |
| optimizeDeps: { | |
| include: ['three', '@react-three/fiber', '@react-three/drei'], | |
| }, | |
| }); | |