chore(sentry): use correct chunks option
This commit is contained in:
parent
68a137acf9
commit
2fad45e016
@ -218,15 +218,17 @@ export default defineConfig(({mode}) => {
|
|||||||
port: 4173,
|
port: 4173,
|
||||||
strictPort: true,
|
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: {
|
build: {
|
||||||
target: 'esnext',
|
target: 'esnext',
|
||||||
// required for sentry debugging: tells vite to create source maps
|
// required for sentry debugging: tells vite to create source maps
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
rollupOptions: {
|
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: [
|
plugins: [
|
||||||
visualizer({
|
visualizer({
|
||||||
filename: 'stats.html',
|
filename: 'stats.html',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user