added @sentry/vite-plugin & sourcemap
This commit is contained in:
parent
78480e4958
commit
629dd738f5
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,6 +14,8 @@ dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
|
||||
.env
|
||||
|
||||
/cypress/videos/
|
||||
/cypress/screenshots/
|
||||
|
||||
|
806
package-lock.json
generated
806
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -19,6 +19,7 @@
|
||||
"@tweenjs/tween.js": "^21.0.0",
|
||||
"@vojtechlanka/vue-simple-suggest": "^2.0.6",
|
||||
"@vuepic/vue-datepicker": "^11.0.1",
|
||||
"dotenv": "^16.4.7",
|
||||
"fabric": "^6.0.0-beta7",
|
||||
"granim": "^2.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
@ -38,6 +39,7 @@
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-graphql": "^2.0.0",
|
||||
"@rushstack/eslint-patch": "^1.1.4",
|
||||
"@sentry/vite-plugin": "^3.2.2",
|
||||
"@types/medium-editor": "^5.0.8",
|
||||
"@vitejs/plugin-vue": "^4.4.0",
|
||||
"@vue/eslint-config-prettier": "^8.0.0",
|
||||
|
@ -5,6 +5,9 @@ import vue from '@vitejs/plugin-vue'
|
||||
import graphql from '@rollup/plugin-graphql';
|
||||
import { viteRequire } from 'vite-require'
|
||||
import svgLoader from 'vite-svg-loader'
|
||||
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
||||
|
||||
require('dotenv').config();
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
@ -14,7 +17,15 @@ export default defineConfig({
|
||||
whitespace: 'preserve'
|
||||
}
|
||||
}
|
||||
}), graphql(), viteRequire(), svgLoader({defaultImport: 'raw'})],
|
||||
}), graphql(), viteRequire(), svgLoader({defaultImport: 'raw'}),
|
||||
sentryVitePlugin({
|
||||
org: "figures-libres",
|
||||
project: "atlas-atterrissage.com",
|
||||
authToken: process.env.AUTH_TOKEN,
|
||||
release: "ouatterrir",
|
||||
url: "https://frontlog.figli.io",
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
@ -36,8 +47,10 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
// https://rollupjs.org/configuration-options/
|
||||
sourcemap: true,
|
||||
},
|
||||
},
|
||||
// https://github.com/vitejs/vite/discussions/7920
|
||||
|
Loading…
x
Reference in New Issue
Block a user