perf: lazy-load SheetJS at first spreadsheet read

↗ view on GitHub · Eli Ziff · 2026-07-27 · 910b0920

xlsx (~1 MB, installed from a pinned CDN tarball) sat in the eager
boot graph for every process that never touches a spreadsheet.
spreadsheetToLLMText is now async with a memoized dynamic import;
verified via require-cache probe that xlsx no longer loads at boot.

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 4135d954
Stats 3 files changed , +24 , -11
Part of Frontend UI compaction / simplification pass

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-910b0920.md from inside the repo you want the change in.

⬇ Download capture-commit-910b0920.md