-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvite.config.ts
42 lines (41 loc) · 1.17 KB
/
vite.config.ts
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
import { sentrySvelteKit } from "@sentry/sveltekit";
import { sveltekit } from "@sveltejs/kit/vite";
import { svelteTesting } from "@testing-library/svelte/vite";
import { defineConfig } from "vite";
export default defineConfig(({ mode }) => ({
plugins: [
mode === "production"
? sentrySvelteKit({
sourceMapsUploadOptions: {
org: "cole-crouter",
project: "stardew-save-editor",
},
bundleSizeOptimizations: {
excludeReplayIframe: true,
excludeReplayShadowDom: true,
excludeDebugStatements: true,
},
})
: undefined,
sveltekit(),
svelteTesting(),
],
server: {
fs: {
allow: [".."],
},
},
optimizeDeps: {
include: [
"idb",
"@thisux/sveltednd",
"comlink",
"fast-xml-parser",
"@sentry/sveltekit",
],
},
test: {
environment: "happy-dom",
setupFiles: ["@vitest/web-worker", "./test/vitest-setup.ts"],
},
}));