-
-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (26 loc) · 669 Bytes
/
vite.config.ts
File metadata and controls
27 lines (26 loc) · 669 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
import rsc from '@vitejs/plugin-rsc'
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// import inspect from 'vite-plugin-inspect'
export default defineConfig({
clearScreen: false,
build: {
minify: false,
},
plugins: [
// inspect(),
tailwindcss(),
react(),
rsc({
entries: {
client: './react-router-vite/entry.browser.tsx',
ssr: './react-router-vite/entry.ssr.tsx',
rsc: './react-router-vite/entry.rsc.tsx',
},
}),
],
optimizeDeps: {
include: ['react-router', 'react-router/internal/react-server-client'],
},
}) as any