mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 02:25:18 +00:00
Add Sentry Vite plugin for sourcemaps (#326)
This commit is contained in:
parent
62830b3e7b
commit
1f8a413e8d
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,3 +3,6 @@
|
|||||||
Dockerfile
|
Dockerfile
|
||||||
.DS_Store
|
.DS_Store
|
||||||
stats.html
|
stats.html
|
||||||
|
|
||||||
|
# Sentry Config File
|
||||||
|
.env.sentry-build-plugin
|
||||||
|
681
package-lock.json
generated
681
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -24,6 +24,7 @@
|
|||||||
"@fingerprintjs/fingerprintjs": "3.4.2",
|
"@fingerprintjs/fingerprintjs": "3.4.2",
|
||||||
"@sentry/integrations": "7.106.1",
|
"@sentry/integrations": "7.106.1",
|
||||||
"@sentry/react": "7.106.1",
|
"@sentry/react": "7.106.1",
|
||||||
|
"@sentry/vite-plugin": "2.21.1",
|
||||||
"card-validator": "8.1.1",
|
"card-validator": "8.1.1",
|
||||||
"credit-card-type": "9.1.0",
|
"credit-card-type": "9.1.0",
|
||||||
"framer-motion": "10.12.18",
|
"framer-motion": "10.12.18",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import { visualizer } from 'rollup-plugin-visualizer';
|
import { visualizer } from 'rollup-plugin-visualizer';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
@ -8,11 +9,14 @@ export default defineConfig({
|
|||||||
base: './',
|
base: './',
|
||||||
build: {
|
build: {
|
||||||
outDir: 'dist/v1',
|
outDir: 'dist/v1',
|
||||||
|
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
app: './checkout.html',
|
app: './checkout.html',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
@ -34,6 +38,11 @@ export default defineConfig({
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
visualizer(),
|
visualizer(),
|
||||||
|
sentryVitePlugin({
|
||||||
|
org: 'empayredev',
|
||||||
|
project: 'checkout',
|
||||||
|
telemetry: false,
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
server: {
|
server: {
|
||||||
port: 7050,
|
port: 7050,
|
||||||
|
Loading…
Reference in New Issue
Block a user