feat: only build sourcemaps for sentry
This commit is contained in:
parent
de1eac5d36
commit
cf6836f857
|
|
@ -219,7 +219,7 @@ export default defineConfig(({mode}) => {
|
|||
build: {
|
||||
target: 'esnext',
|
||||
// required for sentry debugging: tells vite to create source maps
|
||||
sourcemap: true,
|
||||
sourcemap: Boolean(env.SENTRY_AUTH_TOKEN),
|
||||
rollupOptions: {
|
||||
plugins: [
|
||||
visualizer({
|
||||
|
|
|
|||
Loading…
Reference in New Issue