Build compact code by default #1337 (#1338)

This commit is contained in:
Jaifroid 2025-04-20 09:28:51 +01:00 committed by GitHub
parent 4c4440807f
commit e9b4473aec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,8 @@ const config = {
} }
] ]
], ],
exclude: ['node_modules/**'] exclude: ['node_modules/**'],
compact: true // Force compacting for large files
}; };
export default config; export default config;

View File

@ -89,7 +89,7 @@ if (process.env.BUILD === 'production') {
// Alter remaining lib references // Alter remaining lib references
.replace(/([\\/])js[\\/]lib/g, '$1js') .replace(/([\\/])js[\\/]lib/g, '$1js')
// Remove unneeded ASM/WASM binaries // Remove unneeded ASM/WASM binaries
.replace(/["']www[\\/]js[\\/].*dec.*js["'],\s*/g, '') .replace(/['"]www[\\/]js[\\/].*dec.*js['"],\s*/g, '')
); );
return result.code; return result.code;
} }