|
@@ -14,7 +14,7 @@ import { sentryVitePlugin } from '@sentry/vite-plugin'
|
|
|
|
|
|
export default defineConfig(({ mode }) => {
|
|
export default defineConfig(({ mode }) => {
|
|
const env = loadEnv(mode, process.cwd(), '')
|
|
const env = loadEnv(mode, process.cwd(), '')
|
|
- console.log(mode)
|
|
|
|
|
|
+
|
|
return {
|
|
return {
|
|
base: '/',
|
|
base: '/',
|
|
plugins: [
|
|
plugins: [
|
|
@@ -73,11 +73,11 @@ export default defineConfig(({ mode }) => {
|
|
sourcemap: !!env.VITE_SENTRY_DSN,
|
|
sourcemap: !!env.VITE_SENTRY_DSN,
|
|
rollupOptions: {
|
|
rollupOptions: {
|
|
output: {
|
|
output: {
|
|
- manualChunks: (id) => {
|
|
|
|
|
|
+ manualChunks: id => {
|
|
if (id.includes('node_modules')) {
|
|
if (id.includes('node_modules')) {
|
|
return 'vender'
|
|
return 'vender'
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|