What's wrong with this entry?
Anonymous. No account, no email.
What: The Yoga WASM rendering library is now loaded on-demand instead of during startup, significantly improving CLI startup time for non-rendering operations.
How it works:
- Yoga library loads only when rendering is actually needed
- Automatic error checking prevents usage before initialization
- Memoization ensures the library loads only once
- Most CLI commands (git operations, file reading, etc.) now start faster
Details:
- Previous version loaded Yoga synchronously during startup at multiple points
- New version uses lazy async loading with
await xq0()memoization - Error guard function
EL9() at line 53524throws "Yoga not loaded" if accessed prematurely - Single initialization point at
OR9() at line 71850replaces multipleawait hp()calls - Evidence:
Wq0() at line 52532,EL9() at line 53524,NMA() at line 53603(replaced synchronoushp() at line 52526in v2.0.26)