-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
54 lines (49 loc) · 1.34 KB
/
Copy pathsvelte.config.js
File metadata and controls
54 lines (49 loc) · 1.34 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
42
43
44
45
46
47
48
49
50
51
52
53
54
import vercel from '@sveltejs/adapter-vercel';
import preprocess from 'svelte-preprocess';
import { resolve } from 'path';
import { mdsvex } from 'mdsvex';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
extensions: [
'.svelte',
'.svx',
'.md'
],
preprocess: [
mdsvex({ extensions: ['.svx', '.md'] }),
preprocess({
postcss: true,
}),
],
kit: {
adapter: vercel({
// if true, will deploy the app using edge functions
// (https://vercel.com/docs/concepts/functions/edge-functions)
// rather than serverless functions
edge: false,
// an array of dependencies that esbuild should treat
// as external when bundling functions
external: [],
// if true, will split your app into multiple functions
// instead of creating a single one for the entire app
split: false
}),
vite: {
ssr: {
noExternal: ['three']
},
resolve: {
alias: {
'svelte/store': resolve('src/lib/vendor/svelte-store.mjs'),
'svelte/transition': resolve('src/lib/vendor/svelte-transition.mjs'),
'svelte/animate': resolve('src/lib/vendor/svelte-animate.mjs'),
'svelte/motion': resolve('src/lib/vendor/svelte-motion.mjs')
},
dedupe: ['svelte']
}
}
}
};
export default config;