-
Notifications
You must be signed in to change notification settings - Fork 1
/
svelte.config.js
34 lines (32 loc) · 1.12 KB
/
svelte.config.js
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
import { preprocessMeltUI } from '@melt-ui/pp';
import adapter from '@sveltejs/adapter-cloudflare';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from 'mdsvex';
import sequence from 'svelte-sequential-preprocessor';
import mdsvexConfig from './mdsvex.config.js';
/** @type {import('@sveltejs/kit').Config}*/
const config = {
extensions: ['.svelte', ...(mdsvexConfig.extensions ?? [])],
kit: {
adapter: adapter(),
alias: {
$i18n: './src/paraglide',
$lib: './src/lib'
},
prerender: {
handleMissingId: 'warn'
},
typescript: {
config(config) {
config.include.push('../uno.config.ts');
config.include.push('../vite.config.ts');
config.include.push('../mdsvex.config.js');
config.include.push('../eslint.config.js');
config.include.push('../svelte.config.js');
return config;
}
}
},
preprocess: sequence([vitePreprocess(), mdsvex(mdsvexConfig), preprocessMeltUI()])
};
export default config;