-
Notifications
You must be signed in to change notification settings - Fork 7
/
vite.config.js
42 lines (41 loc) · 1.14 KB
/
vite.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
36
37
38
39
40
41
42
import { sentrySvelteKit } from '@sentry/sveltekit';
import * as path from 'path';
import glob from 'vite-plugin-glob';
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import preload from 'vite-plugin-preload';
import { partytownVite } from '@builder.io/partytown/utils';
export default defineConfig({
resolve: {
alias: {
'@': path.resolve('./src'),
'@atoms': path.resolve('./src/components/atoms'),
'@molecules': path.resolve('./src/components/molecules'),
'@organisms': path.resolve('./src/components/organisms'),
'@templates': path.resolve('./src/components/templates')
}
},
plugins: [
sentrySvelteKit({
sourceMapsUploadOptions: {
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
url: process.env.SENTRY_URL,
cleanArtifacts: true,
setCommits: {
auto: true
}
}
}),
glob(),
sveltekit(),
preload(),
partytownVite({
dest: path.join(process.cwd(), 'static', '~partytown')
})
],
build: {
sourcemap: true
}
});