Add Sentry Vite plugin for sourcemaps (#326)

This commit is contained in:
Ildar Galeev 2024-07-24 18:37:36 +07:00 committed by GitHub
parent 62830b3e7b
commit 1f8a413e8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 492 additions and 202 deletions

3
.gitignore vendored
View File

@ -3,3 +3,6 @@
Dockerfile
.DS_Store
stats.html
# Sentry Config File
.env.sentry-build-plugin

681
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,6 +24,7 @@
"@fingerprintjs/fingerprintjs": "3.4.2",
"@sentry/integrations": "7.106.1",
"@sentry/react": "7.106.1",
"@sentry/vite-plugin": "2.21.1",
"card-validator": "8.1.1",
"credit-card-type": "9.1.0",
"framer-motion": "10.12.18",

View File

@ -1,3 +1,4 @@
import { sentryVitePlugin } from '@sentry/vite-plugin';
import react from '@vitejs/plugin-react';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite';
@ -8,11 +9,14 @@ export default defineConfig({
base: './',
build: {
outDir: 'dist/v1',
rollupOptions: {
input: {
app: './checkout.html',
},
},
sourcemap: true,
},
plugins: [
react(),
@ -34,6 +38,11 @@ export default defineConfig({
],
}),
visualizer(),
sentryVitePlugin({
org: 'empayredev',
project: 'checkout',
telemetry: false,
}),
],
server: {
port: 7050,