feat: add terser for advanced minification and improve React chunking

- Added terser as a dependency for enhanced code minification.
- Updated Vite configuration to enable aggressive minification using terser with options to drop console logs and unused code.
- Refined manual chunking for React libraries to improve code splitting and loading efficiency.
This commit is contained in:
typist
2025-10-29 09:06:56 +08:00
parent aca7e11835
commit 3e14bc652f
3 changed files with 30 additions and 5 deletions

3
pnpm-lock.yaml generated
View File

@@ -96,6 +96,9 @@ importers:
globals:
specifier: ^16.4.0
version: 16.4.0
terser:
specifier: ^5.44.0
version: 5.44.0
tsx:
specifier: ^4.19.2
version: 4.20.6