Commit 69f0b8b
feat(docs): optimize delivery with vendor chunk splitting
Split heavy dependencies (mermaid, markdown-it, search) into separate
lazy-loaded chunks. Main app bundle reduced from 606 KB to 61 KB (90%
reduction). Large vendor chunks now load on-demand only when needed.
Before:
- app.js: 606 KB (all-in-one bundle)
- Warning: chunks larger than 500 KB
After:
- app.js: 61 KB (main app)
- mermaid-vendor.js: 2.9 MB (lazy-loaded on diagram pages)
- markdown-vendor.js: 253 KB (lazy-loaded)
- search-vendor.js: 18 KB (lazy-loaded)
Tests: npm test passes (15/15)
Build: No warnings for main app bundle
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9e8eaf1 commit 69f0b8b
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
236 | 256 | | |
237 | 257 | | |
238 | 258 | | |
| |||
0 commit comments