Skip to content

Commit 0130397

Browse files
authored
chore: Update Sentry (#7647)
* chore: Update Sentry * clean up
1 parent d982311 commit 0130397

File tree

5 files changed

+240
-132
lines changed

5 files changed

+240
-132
lines changed

packages/desktop/.sentrycliignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

packages/desktop/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@amplitude/analytics-node": "^1.1.3",
32-
"@sentry/electron": "^2.5.4",
32+
"@sentry/electron": "^4.10.0",
3333
"@types/webpack-dev-server": "^4.7.2",
3434
"dotenv": "^16.0.3",
3535
"electron-dl": "^3.5.0",
@@ -42,8 +42,8 @@
4242
"url": "^0.11.0"
4343
},
4444
"devDependencies": {
45+
"@sentry/webpack-plugin": "^2.8.0",
4546
"@electron/notarize": "^2.1.0",
46-
"@sentry/webpack-plugin": "^1.18.5",
4747
"@tsconfig/svelte": "^4.0.1",
4848
"@types/webpack": "^5.28.1",
4949
"copy-webpack-plugin": "^11.0.0",

packages/desktop/sentry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const { getAppName } = require('./product.js')
33

44
/* eslint-disable-next-line no-undef */
5-
const Sentry = SENTRY_MAIN_PROCESS ? require('@sentry/electron/dist/main') : require('@sentry/electron/dist/renderer')
5+
const Sentry = SENTRY_MAIN_PROCESS ? require('@sentry/electron/main') : require('@sentry/electron/renderer')
66

77
const debug = true
88
/* eslint-disable no-undef */

packages/desktop/webpack.config.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import CopyPlugin from 'copy-webpack-plugin'
33
import { DefinePlugin } from 'webpack'
44
import path from 'path'
55
import sveltePreprocess from 'svelte-preprocess'
6-
import SentryWebpackPlugin from '@sentry/webpack-plugin'
6+
import { sentryWebpackPlugin } from '@sentry/webpack-plugin'
77
import { version } from './package.json'
88
import features from './features/features'
99
import { Configuration as WebpackConfiguration } from 'webpack'
@@ -189,16 +189,20 @@ const preloadPlugins = [
189189
]
190190

191191
const sentryPlugins = [
192-
new SentryWebpackPlugin({
193-
authToken: process.env.SENTRY_AUTH_TOKEN,
194-
include: '.',
195-
release: `${getAppName(prod)}@${NETWORK}-${version}`,
196-
ignoreFile: '.sentrycliignore',
192+
sentryWebpackPlugin({
197193
org: 'iota-foundation-h4',
198194
project: 'firefly-desktop',
199-
finalize: false,
200-
deploy: {
201-
env: STAGE,
195+
authToken: process.env.SENTRY_AUTH_TOKEN,
196+
release: {
197+
name: `${getAppName(prod)}@${NETWORK}-${version}`,
198+
finalize: false,
199+
deploy: {
200+
env: STAGE,
201+
},
202+
},
203+
sourcemaps: {
204+
assets: '.',
205+
ignore: ['node_modules', 'scripts', 'postcss.config.js', 'webpack.config.js', 'electron-builder-config.js'],
202206
},
203207
}),
204208
]

0 commit comments

Comments
 (0)