17 lines
338 B
TypeScript
17 lines
338 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
three: ['three', '@react-three/fiber', '@react-three/drei'],
|
|
motion: ['motion'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|