- [x] Review the documentation: https://docs.sentry.io/
Package + Version
- [x]
@sentry/browser
Version:
5.1.0
Description
project was created by Vue CLI 3, “main.js” file:
import Vue from 'vue'
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations'
const dsn = 'http://4104209251f24d058f454cb97f4564fc@10.1.1.248:9000/4'
Sentry.init({
dsn,
release: '1.0.0',
integrations: [
new Integrations.Vue({
Vue,
attachProps: true
})
]
})
“vue.config.js” file:
new SentryCliPlugin({
release: '1.0.0',
include: './dist',
ignore: ['node_modules', 'vue.config.js'],
filenameTransform: filename => '~/' + filename
})