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
|
coverage
|
||||||
*.local
|
*.local
|
||||||
|
|
||||||
|
.env
|
||||||
|
|
||||||
/cypress/videos/
|
/cypress/videos/
|
||||||
/cypress/screenshots/
|
/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",
|
"@tweenjs/tween.js": "^21.0.0",
|
||||||
"@vojtechlanka/vue-simple-suggest": "^2.0.6",
|
"@vojtechlanka/vue-simple-suggest": "^2.0.6",
|
||||||
"@vuepic/vue-datepicker": "^11.0.1",
|
"@vuepic/vue-datepicker": "^11.0.1",
|
||||||
|
"dotenv": "^16.4.7",
|
||||||
"fabric": "^6.0.0-beta7",
|
"fabric": "^6.0.0-beta7",
|
||||||
"granim": "^2.0.0",
|
"granim": "^2.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
@ -38,6 +39,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-graphql": "^2.0.0",
|
"@rollup/plugin-graphql": "^2.0.0",
|
||||||
"@rushstack/eslint-patch": "^1.1.4",
|
"@rushstack/eslint-patch": "^1.1.4",
|
||||||
|
"@sentry/vite-plugin": "^3.2.2",
|
||||||
"@types/medium-editor": "^5.0.8",
|
"@types/medium-editor": "^5.0.8",
|
||||||
"@vitejs/plugin-vue": "^4.4.0",
|
"@vitejs/plugin-vue": "^4.4.0",
|
||||||
"@vue/eslint-config-prettier": "^8.0.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 graphql from '@rollup/plugin-graphql';
|
||||||
import { viteRequire } from 'vite-require'
|
import { viteRequire } from 'vite-require'
|
||||||
import svgLoader from 'vite-svg-loader'
|
import svgLoader from 'vite-svg-loader'
|
||||||
|
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
||||||
|
|
||||||
|
require('dotenv').config();
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -14,7 +17,15 @@ export default defineConfig({
|
|||||||
whitespace: 'preserve'
|
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: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
@ -36,8 +47,10 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
sourcemap: true,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
// https://rollupjs.org/configuration-options/
|
// https://rollupjs.org/configuration-options/
|
||||||
|
sourcemap: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// https://github.com/vitejs/vite/discussions/7920
|
// https://github.com/vitejs/vite/discussions/7920
|
||||||
|
Loading…
x
Reference in New Issue
Block a user