feat: import sentry only if it is enabled
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
a4f4f2f344
commit
d1d8c8274c
@ -127,9 +127,9 @@ app.config.globalProperties.$message = {
|
||||
success,
|
||||
}
|
||||
|
||||
import setupSentry from './sentry'
|
||||
|
||||
setupSentry(app, router)
|
||||
if (window.SENTRY_ENABLED) {
|
||||
import('./sentry').then(sentry => sentry.default(app, router))
|
||||
}
|
||||
|
||||
app.use(router)
|
||||
app.use(store)
|
||||
|
@ -1,8 +1,4 @@
|
||||
export default async function setupSentry(app, router) {
|
||||
if (!window.SENTRY_ENABLED) {
|
||||
return
|
||||
}
|
||||
|
||||
const Sentry = await import('@sentry/vue')
|
||||
const {Integrations} = await import('@sentry/tracing')
|
||||
|
||||
|
Reference in New Issue
Block a user