Skip to content

Commit

Permalink
feat: add browser integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
robyedlin authored and DiederikvandenB committed Nov 27, 2018
1 parent bb6f70a commit 8f11ea7
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions lib/templates/sentry-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@ import * as Sentry from '@sentry/browser'

export default function (ctx, inject) {
const opts = Object.assign({}, <%= serialize(options.config) %>, {
integrations: (integrations) => {
integrations.push(new Sentry.Integrations.Vue({ Vue }))
return integrations
}
// Use default browser integrations
defaultIntegrations: false,
integrations: [
new Sentry.Integrations.Dedupe,
new Sentry.Integrations.InboundFilters,
new Sentry.Integrations.FunctionToString,
new Sentry.Integrations.TryCatch,
new Sentry.Integrations.Breadcrumbs,
new Sentry.Integrations.GlobalHandlers,
new Sentry.Integrations.LinkedErrors,
new Sentry.Integrations.UserAgent,
new Sentry.Integrations.Vue({ Vue })
]
})
Sentry.init(opts)

Expand Down

0 comments on commit 8f11ea7

Please sign in to comment.