vite.config.ts 550 B

12345678910111213141516171819202122232425262728
  1. import { defineConfig } from "vite";
  2. import vue from "@vitejs/plugin-vue";
  3. import path from "path";
  4. export default defineConfig({
  5. plugins: [vue()],
  6. resolve: {
  7. alias: {
  8. "@": path.resolve(__dirname, "./src"),
  9. },
  10. },
  11. build: {
  12. outDir: 'dist',
  13. chunkSizeWarningLimit: 1000,
  14. rollupOptions: {
  15. output: {
  16. manualChunks: {
  17. 'three-vendor': ['three'],
  18. 'ui-vendor': ['lucide-vue-next', '@vueuse/core'],
  19. }
  20. }
  21. }
  22. },
  23. test: {
  24. globals: true,
  25. environment: "jsdom",
  26. },
  27. });