import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], server: { host: true, port: 3000, }, build: { rollupOptions: { output: { manualChunks: { 'three': ['three'], 'r3f': ['@react-three/fiber', '@react-three/drei'], }, }, }, }, })