perf: shared lazy zip loader for the DOCX libs

↗ view on GitHub · Eli Ziff · 2026-07-27 · de6a95ec

Six libs value-imported jszip only to call loadAsync, putting its 34
modules in the boot graph. One lazy door (lib/zip.ts) now serves all
of them, matching the dynamic-import idiom documentOps already used.
Eager graph: 377 -> 327 modules (674 before this series).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUsMXzBsEJ27DjJVPSfW5o
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents d4dffaf4
Stats 7 files changed , +29 , -15
Part of SourceDoc / DOCX engine: redlines, tracked changes, editing benchmark

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-de6a95ec.md from inside the repo you want the change in.

⬇ Download capture-commit-de6a95ec.md