-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
35 lines (31 loc) · 854 Bytes
/
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
import { sveltekit } from '@sveltejs/kit/vite';
import { imagetools } from '@zerodevx/svelte-img/vite';
// import { join, resolve } from 'path';
import { FontaineTransform } from 'fontaine';
import { resolve } from 'path';
import { defineConfig } from 'vitest/config';
// import { partytownVite } from '@builder.io/partytown/utils';
export default defineConfig({
ssr: {
noExternal: ['typesafe-i18n']
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
},
resolve: {
alias: {
$: resolve('./src')
}
},
plugins: [
sveltekit(),
FontaineTransform.vite({
fallbacks: ['BlinkMacSystemFont', 'Segoe UI', 'Helvetica Neue', 'Arial', 'Noto Sans'],
resolvePath: (id) => new URL('.' + id, import.meta.url)
}),
imagetools()
// partytownVite({
// dest: join(process.cwd(), '.svelte-kit/output/client/~partytown')
// })
]
});