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
Links
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/>'
})