fix(build): externalize sentry from vite bundle for bun compat

This commit is contained in:
2026-03-14 21:20:21 +01:00
parent 081e65044e
commit dc2707fd59
3 changed files with 5 additions and 5 deletions

View File

@@ -17,11 +17,11 @@ export default defineConfig({
devtoolsJson()
],
ssr: {
external: ['bun', 'pino', 'pino-pretty']
external: ['bun', 'pino', 'pino-pretty', '@sentry/sveltekit', '@sentry/node']
},
build: {
rollupOptions: {
external: ['bun', 'pino', 'pino-pretty']
external: ['bun', 'pino', 'pino-pretty', '@sentry/sveltekit', '@sentry/node']
},
reportCompressedSize: false
},