Skip to content

Commit

Permalink
sentry vite plugin - upload sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jan 31, 2025
1 parent 43686f8 commit 85b8ef3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ Thumbs.db
.classpath
*.launch
.settings/

# Sentry Config File
.env.sentry-build-plugin
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"dependencies": {
"@mapbox/polyline": "^1.2.1",
"@sentry/solid": "^8.53.0",
"@sentry/vite-plugin": "^3.1.1",
"@solid-primitives/state-machine": "^0.0.3",
"@solidjs/router": "^0.15.2",
"clsx": "^2.1.1",
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@

import { defineConfig } from 'vite'
import solid from 'vite-plugin-solid'
import devtools from 'solid-devtools/vite'
import { sentryVitePlugin } from '@sentry/vite-plugin'

export default defineConfig({
plugins: [
devtools(),
solid({
ssr: false,
}),
sentryVitePlugin({
org: 'commaai',
project: 'new-connect',
}),
],
server: {
port: 3000,
},
build: {
target: 'esnext',
sourcemap: true,
},
resolve: {
alias: {
Expand Down

0 comments on commit 85b8ef3

Please sign in to comment.