Commit 8dfb2db
committed
Migrate frontend build system from Webpack to Vite
This migration modernizes the build tooling while maintaining all existing functionality:
- Replace Webpack with Vite for faster builds and HMR
- Update package.json: remove webpack dependencies, add vite and @vitejs/plugin-react
- Create vite.config.ts with support for:
- Multiple HTML entry points (taskpane, editor, logs, popup, commands)
- HTTPS dev server with Office.js dev certificates
- API proxy to backend at /api
- Manifest.xml transformation for prod/dev
- Static asset copying
- Code splitting with React vendor chunk
- Update all HTML entry points to include script module tags
- Replace Webpack HMR with Vite HMR in index.tsx
- Update tsconfig.json for Vite compatibility:
- moduleResolution: bundler
- target: ES2020
- isolatedModules: true
- noEmit: true
- Add vite-env.d.ts for Vite type definitions
- Update CLAUDE.md documentation to reflect Vite build system
All endpoints, build outputs, and dev server functionality remain unchanged.
Build commands maintain the same interface (npm run build, npm run dev-server).1 parent d13431c commit 8dfb2db
File tree
12 files changed
+3112
-6280
lines changed- frontend
- src
- commands
- editor
- logs
12 files changed
+3112
-6280
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments