-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
vite.config.mts
37 lines (30 loc) · 984 Bytes
/
vite.config.mts
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
import path from 'path';
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
export default defineConfig({
plugins: [svelte()],
base: './',
build: {
outDir: path.join(__dirname, 'build'),
assetsInlineLimit: 0,
},
resolve: {
alias: {
'@app': path.resolve(__dirname, 'src/app'),
'@assets': path.resolve(__dirname, 'src/assets'),
'@components': path.resolve(__dirname, 'src/components'),
'@features': path.resolve(__dirname, 'src/features'),
'@lib': path.resolve(__dirname, 'src/lib'),
},
},
define: {
__APP_VERSION__: JSON.stringify(require('./package.json').version),
},
// https://github.com/cypress-io/cypress/issues/22557#issuecomment-1229654837
optimizeDeps: {
include: ['@sentry/browser', '@sentry/integrations', '@sentry/tracing'],
},
server: {
port: 8080,
},
});