diff --git a/packages/client/vite.config.ts b/packages/client/vite.config.ts index b1b5f91..56da326 100644 --- a/packages/client/vite.config.ts +++ b/packages/client/vite.config.ts @@ -3,5 +3,19 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [react()] + plugins: [react()], + build: { + rollupOptions: { + output: { + manualChunks: (id) => { + if (id.includes("node_modules")) { + if (id.includes("three")) { + return "vendor_three"; + } + return "vendor"; + } + } + }, + }, + }, })