-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
41 lines (37 loc) · 879 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
36
37
38
39
40
41
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
import { resolve } from 'path';
// import { join, resolve } from 'path';
import { FontaineTransform } from 'fontaine';
import { imagetools } from '@zerodevx/svelte-img/vite';
// 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')
// })
]
});