Skip to content

Commit b5de735

Browse files
authored
Make the bundle size smaller by updating the sentry integration (#280)
* Add Vocabulary Select implementation instead of buefy select * Revert "Add Vocabulary Select implementation instead of buefy select" This reverts commit 6f09c17 * Replace sentry packages with `@sentry/vue`
1 parent 4a26904 commit b5de735

File tree

3 files changed

+144
-34
lines changed

3 files changed

+144
-34
lines changed

package-lock.json

Lines changed: 141 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"@creativecommons/vocabulary": "^2020.11.3",
2323
"@creativecommons/vue-vocabulary": "^2020.11.3",
2424
"@linusborg/vue-simple-portal": "^0.1.4",
25-
"@sentry/browser": "^5.20.1",
26-
"@sentry/integrations": "^5.20.1",
25+
"@sentry/vue": "^5.29.2",
2726
"buefy": "^0.9.4",
2827
"clipboard": "^2.0.6",
2928
"core-js": "^3.6.5",

src/main.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import './styles/vocab.scss'
88
import VueScrollTo from 'vue-scrollto'
99

1010
// Analytics
11-
import * as Sentry from '@sentry/browser'
12-
import * as Integrations from '@sentry/integrations'
11+
import * as Sentry from '@sentry/vue'
1312
import Hotjar from 'vue-hotjar'
1413
import VueAnalytics from 'vue-analytics'
1514

@@ -31,13 +30,7 @@ Sentry.init({
3130
dsn: process.env.NODE_ENV === 'production'
3231
? 'https://8c09726e231d4cf780c541f40d3639a9@sentry.io/3009295' // cc-chooser-prod project
3332
: 'https://ab63acb8c1464466869182dd53c7046d@sentry.io/3009597', // cc-chooser-dev project
34-
integrations: [
35-
new Integrations.Vue({
36-
Vue,
37-
attachProps: true,
38-
logErrors: process.env.NODE_ENV !== 'production' // Only log errors in dev env
39-
})
40-
]
33+
logErrors: process.env.NODE_ENV !== 'production' // Only log errors in dev env
4134
})
4235

4336
// Production only since we only have a prod id

0 commit comments

Comments
 (0)