-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
43 lines (42 loc) · 921 Bytes
/
Copy pathvite.config.ts
File metadata and controls
43 lines (42 loc) · 921 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
36
37
38
39
40
41
42
43
import babel from "@rolldown/plugin-babel";
import rsc from "@vitejs/plugin-rsc/plugin";
import react, { reactCompilerPreset } from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite-plus";
import devtoolsJson from "vite-plugin-devtools-json";
export default defineConfig({
lint: {
options: {
typeAware: true,
typeCheck: true,
},
categories: {
correctness: "warn",
},
ignorePatterns: ["dist/**"],
},
fmt: {
semi: true,
singleQuote: false,
useTabs: true,
ignorePatterns: ["dist/**"],
},
plugins: [
tailwindcss(),
react(),
babel({
presets: [reactCompilerPreset()],
}),
rsc({
entries: {
client: "src/entry.browser.tsx",
rsc: "src/entry.rsc.tsx",
ssr: "src/entry.ssr.tsx",
},
}),
devtoolsJson(),
],
define: {
"import.meta.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV || "development"),
},
});