-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
41 lines (40 loc) · 1.14 KB
/
Copy pathvite.config.ts
File metadata and controls
41 lines (40 loc) · 1.14 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
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
server: {
watch: {
ignored: ['test-results/**', 'data/**', 'build/**', 'roamarr-test-db/**']
}
},
ssr: {
external: [
'@visorcraft/mongreldb',
'@visorcraft/mongreldb-kit',
'@huggingface/transformers',
'onnxruntime-node'
]
},
build: {
// License data and map/globe libraries are legitimately large; raise the
// warning threshold so the build output stays focused on real problems.
chunkSizeWarningLimit: 1500,
rollupOptions: {
external: [
'@visorcraft/mongreldb',
'@visorcraft/mongreldb-kit',
'@huggingface/transformers',
'onnxruntime-node'
],
// Rolldown emits plugin-timing advisories by default; they're not warnings
// and don't affect the build, so silence them to keep output focused.
checks: { pluginTimings: false }
} as any
},
test: {
setupFiles: ['./vitest.setup.ts'],
testTimeout: 15_000,
include: ['src/**/*.test.ts', 'src/**/(*.)+test.ts', 'scripts/**/*.test.mjs']
}
});