feat: enhance minification and mangling support by switching FONT_DATA to a Map and updating Vite configuration for ECMAScript 2020 compatibility

This commit is contained in:
Juan Sebastián Montoya 2026-01-06 22:40:19 -05:00
parent 9e640aa7be
commit 143072f0a0
2 changed files with 74 additions and 71 deletions

View file

@ -1,25 +1,27 @@
import { defineConfig } from 'vite';
export default defineConfig({
build: {
minify: 'terser',
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
},
mangle: {
toplevel: true,
},
format: {
comments: false,
},
},
rollupOptions: {
output: {
manualChunks: undefined,
},
},
sourcemap: false,
build: {
minify: 'terser',
terserOptions: {
ecma: 2020,
compress: {
drop_console: true,
drop_debugger: true,
},
mangle: {
toplevel: true,
properties: true,
},
format: {
comments: false,
},
},
rollupOptions: {
output: {
manualChunks: undefined,
},
},
sourcemap: false,
},
});