Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix: viteConf
Browse files Browse the repository at this point in the history
  • Loading branch information
sircharlo committed Jun 23, 2024
1 parent cbc2ba2 commit 930e02a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// Configuration for your app
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js
// const { sentryVitePlugin } = require('@sentry/vite-plugin');
const { sentryVitePlugin } = require('@sentry/vite-plugin');
const { sentryEsbuildPlugin } = require('@sentry/esbuild-plugin');
// use mergeConfig helper to avoid overwriting the default config
const { mergeConfig } = require('vite');
Expand All @@ -17,7 +17,6 @@ const path = require('path');
// const inject = require('@rollup/plugin-inject')
const { version } = require('./package.json');


module.exports = configure(function (/* ctx */) {
return {
// https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
Expand Down Expand Up @@ -59,7 +58,7 @@ module.exports = configure(function (/* ctx */) {
});
viteConf.build = mergeConfig(viteConf.build, {
plugins: [
sentryEsbuildPlugin({
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'jw-projects',
project: 'mmm-v2',
Expand Down Expand Up @@ -228,6 +227,19 @@ module.exports = configure(function (/* ctx */) {
}),
);
},
extendViteConf(viteConf) {
viteConf.build = mergeConfig(viteConf.build, {
plugins: [
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'jw-projects',
project: 'mmm-v2',
release: version,
}),
],
sourcemap: true,
});
},

// if (!viteConf.build) viteConf.build = {};
// viteConf.build.sourcemap = true;
Expand Down

0 comments on commit 930e02a

Please sign in to comment.