Skip to content

Commit 8f11ea7

Browse files
robyedlinDiederikvandenB
authored andcommitted
feat: add browser integrations
1 parent bb6f70a commit 8f11ea7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

lib/templates/sentry-client.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@ import * as Sentry from '@sentry/browser'
33

44
export default function (ctx, inject) {
55
const opts = Object.assign({}, <%= serialize(options.config) %>, {
6-
integrations: (integrations) => {
7-
integrations.push(new Sentry.Integrations.Vue({ Vue }))
8-
return integrations
9-
}
6+
// Use default browser integrations
7+
defaultIntegrations: false,
8+
integrations: [
9+
new Sentry.Integrations.Dedupe,
10+
new Sentry.Integrations.InboundFilters,
11+
new Sentry.Integrations.FunctionToString,
12+
new Sentry.Integrations.TryCatch,
13+
new Sentry.Integrations.Breadcrumbs,
14+
new Sentry.Integrations.GlobalHandlers,
15+
new Sentry.Integrations.LinkedErrors,
16+
new Sentry.Integrations.UserAgent,
17+
new Sentry.Integrations.Vue({ Vue })
18+
]
1019
})
1120
Sentry.init(opts)
1221

0 commit comments

Comments
 (0)