From 2fad45e01688311bfa5ccc9d6129113f0ab0d7fe Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 18 Jun 2023 15:05:10 +0200 Subject: [PATCH] chore(sentry): use correct chunks option --- vite.config.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index c67e36b54..c17438a71 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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',