-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (28 loc) · 841 Bytes
/
Copy pathvite.config.ts
File metadata and controls
29 lines (28 loc) · 841 Bytes
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
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
export default defineConfig({
base: './',
plugins: [react()],
server: { port: 3000 },
resolve: { alias: { "@": path.resolve(__dirname, "./src") } },
build: {
target: 'es2020',
minify: 'esbuild',
rollupOptions: {
output: {
manualChunks: {
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
'framer': ['framer-motion'],
'i18n': ['i18next', 'react-i18next', 'i18next-browser-languagedetector'],
'supabase': ['@supabase/supabase-js'],
'charts': ['recharts'],
},
},
},
chunkSizeWarningLimit: 600,
},
optimizeDeps: {
include: ['react', 'react-dom', 'react-router-dom', 'framer-motion', '@supabase/supabase-js'],
},
})