import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; import path from "path"; export default defineConfig({ plugins: [vue()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, build: { outDir: 'dist', chunkSizeWarningLimit: 1000, cssMinify: true, minify: 'esbuild', rollupOptions: { output: { manualChunks: { 'three-vendor': ['three'], 'ui-vendor': ['lucide-vue-next', '@vueuse/core'], } } } }, esbuild: { legalComments: 'none', target: 'esnext', }, test: { globals: true, environment: "jsdom", }, });