-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathvite.config.ts
More file actions
35 lines (34 loc) · 822 Bytes
/
vite.config.ts
File metadata and controls
35 lines (34 loc) · 822 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
30
31
32
33
34
35
import babel from '@rolldown/plugin-babel'
import tailwindcss from '@tailwindcss/vite'
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [
tailwindcss(),
react(),
babel({ presets: [reactCompilerPreset()] }),
],
build: {
rolldownOptions: {
output: {
codeSplitting: {
groups: [
{
name: 'simple-icons',
test: /node_modules[\\/]simple-icons/,
minSize: 50_000,
maxSize: 100_000,
priority: 20,
},
{
name: 'vendor',
test: /node_modules/,
priority: 10,
},
],
},
},
},
},
})