mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 01:51:57 +03:00
fix: use @sentry/vite-plugin
to upload sourcemaps and create releases (#4166)
This commit is contained in:
parent
d013b7baf7
commit
a2bbc4e2e2
@ -50,6 +50,7 @@
|
||||
"@playwright/test": "^1.44.1",
|
||||
"@replit/codemirror-lang-svelte": "^6.0.0",
|
||||
"@sentry/sveltekit": "^8.9.2",
|
||||
"@sentry/vite-plugin": "^2.20.0",
|
||||
"@sveltejs/adapter-static": "^3.0.1",
|
||||
"@sveltejs/kit": "^2.5.10",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.1.1",
|
||||
|
@ -13,7 +13,10 @@ const config = {
|
||||
strict: false
|
||||
})
|
||||
},
|
||||
compilerOptions: { css: 'injected' }
|
||||
compilerOptions: {
|
||||
css: 'injected',
|
||||
enableSourcemap: true
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
@ -1,29 +1,26 @@
|
||||
import { sentrySvelteKit } from '@sentry/sveltekit';
|
||||
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
sentrySvelteKit({
|
||||
autoInstrument: false,
|
||||
sourceMapsUploadOptions: {
|
||||
org: 'gitbutler',
|
||||
project: 'app-js',
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
sourcemaps: {
|
||||
assets: ['build']
|
||||
},
|
||||
unstable_sentryVitePluginOptions: {
|
||||
disable: !process.env.SENTRY_RELEASE,
|
||||
release: {
|
||||
cleanArtifacts: true,
|
||||
setCommits: {
|
||||
auto: true,
|
||||
ignoreMissing: true,
|
||||
ignoreEmpty: true
|
||||
}
|
||||
},
|
||||
telemetry: false
|
||||
autoInstrument: false
|
||||
}),
|
||||
sentryVitePlugin({
|
||||
org: 'gitbutler',
|
||||
project: 'app-js',
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
telemetry: false,
|
||||
disable: !process.env.SENTRY_RELEASE,
|
||||
release: {
|
||||
create: true,
|
||||
cleanArtifacts: true,
|
||||
setCommits: {
|
||||
auto: true,
|
||||
ignoreMissing: true,
|
||||
ignoreEmpty: true
|
||||
}
|
||||
}
|
||||
}),
|
||||
@ -50,7 +47,7 @@ export default defineConfig({
|
||||
// minify production builds
|
||||
minify: !process.env.TAURI_DEBUG ? 'esbuild' : false,
|
||||
// ship sourcemaps for better sentry error reports
|
||||
sourcemap: 'inline'
|
||||
sourcemap: true
|
||||
},
|
||||
test: {
|
||||
deps: {
|
||||
|
@ -90,6 +90,9 @@ importers:
|
||||
'@sentry/sveltekit':
|
||||
specifier: ^8.9.2
|
||||
version: 8.9.2(@opentelemetry/api@1.9.0)(@opentelemetry/core@1.25.0(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.52.0(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.25.0(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.25.0)(@sveltejs/kit@2.5.10(@sveltejs/vite-plugin-svelte@3.1.1(svelte@5.0.0-next.149)(vite@5.2.13(@types/node@20.5.9)))(svelte@5.0.0-next.149)(vite@5.2.13(@types/node@20.5.9)))(svelte@5.0.0-next.149)
|
||||
'@sentry/vite-plugin':
|
||||
specifier: ^2.20.0
|
||||
version: 2.20.0
|
||||
'@sveltejs/adapter-static':
|
||||
specifier: ^3.0.1
|
||||
version: 3.0.1(@sveltejs/kit@2.5.10(@sveltejs/vite-plugin-svelte@3.1.1(svelte@5.0.0-next.149)(vite@5.2.13(@types/node@20.5.9)))(svelte@5.0.0-next.149)(vite@5.2.13(@types/node@20.5.9)))
|
||||
@ -1066,6 +1069,10 @@ packages:
|
||||
resolution: {integrity: sha512-9L4RbhS3WNtc/SokIhc0dwgcvs78YSQPakZejsrIgnzLzCi8mS6PeT+BY0+QCtsXxjd1egM8hqcJeB0lukBkXA==}
|
||||
engines: {node: '>= 14'}
|
||||
|
||||
'@sentry/babel-plugin-component-annotate@2.20.0':
|
||||
resolution: {integrity: sha512-HN/5+cGvI3NqBeW8rLRVGMpF1PADZpAi3h9LI6YBawJPxEz/ftJoryJ6/rXzV6pAPq/7hTEOhTqWPq8iXuM1dw==}
|
||||
engines: {node: '>= 14'}
|
||||
|
||||
'@sentry/browser@8.9.2':
|
||||
resolution: {integrity: sha512-jI5XY4j8Sa+YteokI+4SW+A/ErZxPDnspjvV3dm5pIPWvEFhvDyXWZSepqaoqwo3L7fdkRMzXY8Bi4T7qDVMWg==}
|
||||
engines: {node: '>=14.18'}
|
||||
@ -1074,6 +1081,10 @@ packages:
|
||||
resolution: {integrity: sha512-JvxVgsMFmDsU0Dgcx1CeFUC1scxOVSAOzOcE06qKAVm9BZzxHpI53iNfeMOXwVTUolD8LZVIfgOjkiXfwN/UPQ==}
|
||||
engines: {node: '>= 14'}
|
||||
|
||||
'@sentry/bundler-plugin-core@2.20.0':
|
||||
resolution: {integrity: sha512-boshDF6AwCTL7LBOjDQxINjCWELOU0eamBvD0ibSjT5bjXnqRjJItoUpmggu8D7PvhKlb6H9OjzB5yiHbmve4A==}
|
||||
engines: {node: '>= 14'}
|
||||
|
||||
'@sentry/cli-darwin@2.32.1':
|
||||
resolution: {integrity: sha512-z/lEwANTYPCzbWTZ2+eeeNYxRLllC8knd0h+vtAKlhmGw/fyc/N39cznIFyFu+dLJ6tTdjOWOeikHtKuS/7onw==}
|
||||
engines: {node: '>=10'}
|
||||
@ -1162,6 +1173,10 @@ packages:
|
||||
resolution: {integrity: sha512-yY8QSvbMjRpG5pzN6lnW5guZhyTDSGeWwM9tDyT9ix/ShODy/eE6jErisBtlo50lFJuew7x79WXnVykvds4Ddg==}
|
||||
engines: {node: '>= 14'}
|
||||
|
||||
'@sentry/vite-plugin@2.20.0':
|
||||
resolution: {integrity: sha512-ZWze5B+fG7z4GbL4/XmH5oZIhDus7FbyJd3dggfkdiiIjbAy1QdGHMLBDNzCATSUvjYKYI9wPLWvOh9t7f+EUw==}
|
||||
engines: {node: '>= 14'}
|
||||
|
||||
'@sinclair/typebox@0.27.8':
|
||||
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
|
||||
|
||||
@ -4329,6 +4344,8 @@ snapshots:
|
||||
|
||||
'@sentry/babel-plugin-component-annotate@2.18.0': {}
|
||||
|
||||
'@sentry/babel-plugin-component-annotate@2.20.0': {}
|
||||
|
||||
'@sentry/browser@8.9.2':
|
||||
dependencies:
|
||||
'@sentry-internal/browser-utils': 8.9.2
|
||||
@ -4353,6 +4370,20 @@ snapshots:
|
||||
- encoding
|
||||
- supports-color
|
||||
|
||||
'@sentry/bundler-plugin-core@2.20.0':
|
||||
dependencies:
|
||||
'@babel/core': 7.24.7
|
||||
'@sentry/babel-plugin-component-annotate': 2.20.0
|
||||
'@sentry/cli': 2.32.1
|
||||
dotenv: 16.4.5
|
||||
find-up: 5.0.0
|
||||
glob: 9.3.2
|
||||
magic-string: 0.30.8
|
||||
unplugin: 1.0.1
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
- supports-color
|
||||
|
||||
'@sentry/cli-darwin@2.32.1':
|
||||
optional: true
|
||||
|
||||
@ -4489,6 +4520,14 @@ snapshots:
|
||||
- encoding
|
||||
- supports-color
|
||||
|
||||
'@sentry/vite-plugin@2.20.0':
|
||||
dependencies:
|
||||
'@sentry/bundler-plugin-core': 2.20.0
|
||||
unplugin: 1.0.1
|
||||
transitivePeerDependencies:
|
||||
- encoding
|
||||
- supports-color
|
||||
|
||||
'@sinclair/typebox@0.27.8': {}
|
||||
|
||||
'@sveltejs/adapter-static@3.0.1(@sveltejs/kit@2.5.10(@sveltejs/vite-plugin-svelte@3.1.1(svelte@5.0.0-next.149)(vite@5.2.13(@types/node@20.5.9)))(svelte@5.0.0-next.149)(vite@5.2.13(@types/node@20.5.9)))':
|
||||
@ -6715,7 +6754,7 @@ snapshots:
|
||||
|
||||
unplugin@1.0.1:
|
||||
dependencies:
|
||||
acorn: 8.11.3
|
||||
acorn: 8.12.0
|
||||
chokidar: 3.5.3
|
||||
webpack-sources: 3.2.3
|
||||
webpack-virtual-modules: 0.5.0
|
||||
|
Loading…
Reference in New Issue
Block a user