vite.config.ts 529 B

123456789101112131415161718192021222324252627
  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. chunkSizeWarningLimit: 1000,
  13. rollupOptions: {
  14. output: {
  15. manualChunks: {
  16. 'three-vendor': ['three'],
  17. 'ui-vendor': ['lucide-vue-next', '@vueuse/core'],
  18. }
  19. }
  20. }
  21. },
  22. test: {
  23. globals: true,
  24. environment: "jsdom",
  25. },
  26. });