Skip to content

Commit

Permalink
vite config comments
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentpayot committed Oct 24, 2023
1 parent 3d58324 commit 78a563b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export default defineConfig({
outDir: '../dist',
emptyOutDir: true,
target: 'es2022', // ES2022 allowed for terser v5.16+ https://github.com/vitejs/vite/pull/12197

minify: 'terser', // using terser as esbuild does not support pure functions optimizations https://github.com/evanw/esbuild/issues/731#issuecomment-770564592
minify: 'terser',
terserOptions: {
format: {
comments: false
Expand All @@ -33,11 +32,10 @@ export default defineConfig({
passes: 3,
},
// mangle: {
// properties: 'keep_quoted',
// properties: 'keep_quoted', // effective but dangerous?
// },
mangle: true
},

},
plugins: []
})

0 comments on commit 78a563b

Please sign in to comment.