diff --git a/vite.config.ts b/vite.config.ts index cd5ef15..63f1315 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,4 +24,15 @@ export default defineConfig({ }, }, }, + build: { + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes('node_modules')) { + return id.toString().split('node_modules/')[1].split('/')[0].toString(); + } + } + } + } + } });