Skip to content

Commit

Permalink
Fix: Disable mangling in production build minify
Browse files Browse the repository at this point in the history
The production build now uses terser with the "mangle" option
deactivated.

This addresses a false positive Lintian warning from a mangled variable
name.
  • Loading branch information
timopollmeier committed Jul 25, 2024
1 parent 8195cd6 commit daa8910
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@ export default defineConfig({
},
build: {
outDir: 'build',
minify: 'terser',
terserOptions: {
mangle: false,
},
},
});

0 comments on commit daa8910

Please sign in to comment.