-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
32 lines (31 loc) · 1.06 KB
/
vite.config.ts
File metadata and controls
32 lines (31 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/// <reference types="vitest/config" />
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
open: true,
},
build: {
chunkSizeWarningLimit: 1100,
rollupOptions: {
output: {
manualChunks(id: string) {
if (id.includes('node_modules/@react-three/drei/')) return 'react-three-drei';
if (id.includes('node_modules/@react-three/fiber/')) return 'react-three-fiber';
if (id.includes('node_modules/@react-three/postprocessing/')) return 'react-three-postprocessing';
if (id.includes('node_modules/three/')) return 'three';
if (id.includes('node_modules/postprocessing/')) return 'postprocessing';
if (id.includes('node_modules/framer-motion/')) return 'framer';
},
},
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./tests/setup.ts'],
include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
},
})