-
-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathvite.config.ts
More file actions
26 lines (25 loc) · 602 Bytes
/
Copy pathvite.config.ts
File metadata and controls
26 lines (25 loc) · 602 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
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
input: {
main: "./index.html",
overlay: "./overlay.html",
},
output: {
manualChunks(id: string) {
if (id.includes("node_modules/react")) return "react";
if (id.includes("node_modules/@tauri-apps")) return "tauri";
},
},
},
},
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./src/test/setup.ts"],
css: false,
},
});