JSPM

@sentry/vue

6.10.0-beta
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 765858
  • Score
    100M100P100Q178760F
  • License MIT

Official Sentry SDK for Vue.js

Package Exports

  • @sentry/vue

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sentry/vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


Official Sentry SDK for Vue.js

General

This package is a wrapper around @sentry/browser, with added functionality related to Vue.js. All methods available in @sentry/browser can be imported from @sentry/vue.

It targets Vue version 2.x. Support for 3.x is tracked by GitHub issue #2925.

To use this SDK, call Sentry.init(options) before you create a new Vue instance.

import Vue from 'vue'
import App from './App'
import router from './router'
import * as Sentry from '@sentry/vue'

Sentry.init({
  Vue: Vue,
  dsn: '__PUBLIC_DSN__',
})

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})