From 80dda05ad7db2b8f9b00310b897c20e9a21309c3 Mon Sep 17 00:00:00 2001 From: aelassas Date: Thu, 19 Dec 2024 09:15:49 +0100 Subject: [PATCH] Disable sourcemaps in Vite configuration for improved build performance --- backend/vite.config.ts | 2 +- frontend/vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/vite.config.ts b/backend/vite.config.ts index 0f02b7a90..f18f0c8a3 100644 --- a/backend/vite.config.ts +++ b/backend/vite.config.ts @@ -28,7 +28,7 @@ export default ({ mode }: { mode: string }) => { outDir: 'build', target: 'esnext', modulePreload: true, // Keep modulePreload enabled to ensure the best performance - sourcemap: true, + sourcemap: false, minify: 'esbuild', // Use esbuild for fast minification rollupOptions: { treeshake: true, // Enable Tree Shaking: Ensure unused code is removed by leveraging ES modules and proper imports diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index e805b2012..7621aa1b9 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -28,7 +28,7 @@ export default ({ mode }: { mode: string }) => { outDir: 'build', target: 'esnext', modulePreload: true, // Keep modulePreload enabled to ensure the best performance - sourcemap: true, + sourcemap: false, minify: 'esbuild', // Use esbuild for fast minification rollupOptions: { treeshake: true, // Enable Tree Shaking: Ensure unused code is removed by leveraging ES modules and proper imports