Skip to content

Commit

Permalink
Disable sourcemaps in Vite configuration for improved build performance
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 19, 2024
1 parent 9ac8f26 commit 80dda05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80dda05

Please sign in to comment.