sentry-javascript
sentry-javascript copied to clipboard
feat(solidstart): Add `sentrySolidStartVite` plugin to simplify source maps upload
This plugin simplifies source maps upload by using @sentry/vite-plugin and enabling source map generation by default.
Usage:
import { defineConfig } from '@solidjs/start/config'
import { sentrySolidStartVite } from '@sentry/solidstart'
export default defineConfig({
vite: {
plugins: [
sentrySolidStartVite({
sourceMapsUploadOptions: {
enabled: true,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
},
debug: true,
}),
],
}
})
Closes: #12553