-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
49 lines (48 loc) · 1.15 KB
/
Copy pathvite.config.ts
File metadata and controls
49 lines (48 loc) · 1.15 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { defineConfig } from "vite-plus";
export default defineConfig({
fmt: {
ignorePatterns: ["dist/**", "node_modules/**"],
printWidth: 100,
proseWrap: "always",
},
lint: {
env: {
browser: true,
builtin: true,
},
ignorePatterns: ["dist/**", "node_modules/**"],
options: {
typeAware: true,
},
plugins: ["eslint", "typescript", "react"],
},
pack: {
clean: true,
css: {
fileName: "structure.css",
inject: true,
},
deps: {
neverBundle: true,
onlyImport: ["@tanstack/react-store", "react"],
},
attw: {
profile: "esm-only",
},
dts: true,
entry: {
PaneFrame: "src/PaneFrame.tsx",
SidebarLayout: "src/SidebarLayout.tsx",
SidebarLayoutGeometry: "src/SidebarLayoutGeometry.ts",
SidebarLayoutPrehydration: "src/SidebarLayoutPrehydration.ts",
SidebarLayoutState: "src/SidebarLayoutState.ts",
SidebarLayoutTesting: "src/SidebarLayoutTesting.tsx",
SidebarRuntime: "src/SidebarRuntime.ts",
},
failOnWarn: true,
format: "esm",
platform: "neutral",
publint: true,
target: "es2020",
},
});