chore(sentry): use correct chunks option
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
kolaente 2023-06-18 15:05:10 +02:00
parent 68a137acf9
commit 2fad45e016
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 4 deletions

View File

@ -218,15 +218,17 @@ export default defineConfig(({mode}) => {
port: 4173,
strictPort: true,
},
output: {
manualChunks: {
// by putting tracking related stuff in a separated file we try to prevent unwanted blocking from ad-blockers
sentry: ['./src/sentry.ts', '@sentry/vue', '@sentry/tracing'],
},
},
build: {
target: 'esnext',
// required for sentry debugging: tells vite to create source maps
sourcemap: true,
rollupOptions: {
manualChunks: {
// by putting tracking related stuff in a separated file we try to prevent unwanted blocking from ad-blockers
sentry: ['./src/sentry.ts', '@sentry/vue', '@sentry/tracing']
},
plugins: [
visualizer({
filename: 'stats.html',