## Summary
This PR resolves Vite build warnings about mixed static and dynamic imports that were preventing proper code-splitting.
## Changes
- Convert all dynamic imports of `main-axios.ts` to static imports across 10 files
- Convert all dynamic imports of `sonner` to static imports across 4 files
- Add manual chunking configuration to `vite.config.ts` for better bundle splitting:
- `react-vendor`: React and React DOM
- `ui-vendor`: Radix UI components, lucide-react, clsx, tailwind-merge
- `monaco`: Monaco Editor
- `codemirror`: CodeMirror and related packages
- Increase `chunkSizeWarningLimit` to 1000kB
## Files Modified
- `src/ui/desktop/DesktopApp.tsx`
- `src/ui/desktop/navigation/hosts/Host.tsx`
- `src/ui/desktop/apps/host-manager/hosts/HostManagerViewer.tsx`
- `src/ui/desktop/apps/host-manager/hosts/HostManagerEditor.tsx`
- `src/ui/desktop/apps/features/server-stats/ServerStats.tsx`
- `src/ui/desktop/apps/features/tunnel/TunnelManager.tsx`
- `src/ui/desktop/apps/features/docker/DockerManager.tsx`
- `src/ui/desktop/apps/features/terminal/Terminal.tsx`
- `src/ui/desktop/user/UserProfile.tsx`
- `src/ui/desktop/apps/host-manager/credentials/CredentialSelector.tsx`
- `src/ui/desktop/apps/dashboard/apps/alerts/AlertManager.tsx`
- `src/ui/main-axios.ts`
- `vite.config.ts`
## Test Plan
- [x] Build completes successfully with no errors
- [x] No more "dynamic import will not move module into another chunk" warnings
- [x] Bundle properly split into vendor chunks
## Before
```
(!) /home/agent/Termix/src/ui/main-axios.ts is dynamically imported by ...
... (many files)
dynamic import will not move module into another chunk.
```
## After
Build completes cleanly with proper chunking:
```
dist/assets/react-vendor-BzrpNAyj.js 11.92 kB │ gzip: 4.25 kB
dist/assets/ui-vendor-Bk_hp57T.js 207.02 kB │ gzip: 59.19 kB
dist/assets/codemirror-BLQzba1F.js 407.69 kB │ gzip: 132.38 kB
dist/assets/index-C20Y6l7V.js 8,224.15 kB │ gzip: 2,381.45 kB
✓ built in 38.00s
```
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
This PR resolves Vite build warnings about mixed static and dynamic imports that were preventing proper code-splitting.
Changes
main-axios.tsto static imports across 10 filessonnerto static imports across 4 filesvite.config.tsfor better bundle splitting:react-vendor: React and React DOMui-vendor: Radix UI components, lucide-react, clsx, tailwind-mergemonaco: Monaco Editorcodemirror: CodeMirror and related packageschunkSizeWarningLimitto 1000kBFiles Modified
src/ui/desktop/DesktopApp.tsxsrc/ui/desktop/navigation/hosts/Host.tsxsrc/ui/desktop/apps/host-manager/hosts/HostManagerViewer.tsxsrc/ui/desktop/apps/host-manager/hosts/HostManagerEditor.tsxsrc/ui/desktop/apps/features/server-stats/ServerStats.tsxsrc/ui/desktop/apps/features/tunnel/TunnelManager.tsxsrc/ui/desktop/apps/features/docker/DockerManager.tsxsrc/ui/desktop/apps/features/terminal/Terminal.tsxsrc/ui/desktop/user/UserProfile.tsxsrc/ui/desktop/apps/host-manager/credentials/CredentialSelector.tsxsrc/ui/desktop/apps/dashboard/apps/alerts/AlertManager.tsxsrc/ui/main-axios.tsvite.config.tsTest Plan
Before
After
Build completes cleanly with proper chunking:
🤖 Generated with Claude Code
LGTM. Considered doing this for a while, but never got around to it. Thanks.