-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
35 lines (26 loc) · 939 Bytes
/
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
35
//import adapter from '@sveltejs/adapter-auto';
import vercel from '@sveltejs/adapter-vercel';
import preprocess from 'svelte-preprocess';
//import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
kit: {
//adapter: adapter(),
adapter: vercel(),
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
//ssr: true
},
// SvelteKit uses vite-plugin-svelte. Its options can be provided directly here.
// See the available options at https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md
hot: {
acceptAccessors: true
},
//extensions: ['.svelte'],
preprocess: preprocess({typescript: true}),
// REMARK: 'svelte-kit dev' is pre-bundling dependencies anyway, even without this ...
//prebundleSvelteLibraries: true,
};
export default config;