Builds Yoga (Meta's Flexbox layout engine) as a synchronous WASM module. The stock yoga-layout npm package does async WASM instantiation which breaks anything that needs layout available the moment the process starts — including Ink, which we patch to use this build (see ink-builder).
Ships yoga.wasm + yoga.mjs (ESM) and yoga-sync.cjs for legacy consumers. The WASM binary is embedded as bytes so nothing has to be loaded from disk at runtime.
pnpm --filter yoga-layout-builder run build # dev build
pnpm --filter yoga-layout-builder run build --prod # production buildOutput: build/<mode>/<platform-arch>/wasm/out/Final/ with yoga.wasm, yoga.mjs, yoga-sync.cjs, and yoga-sync.mjs.
The postinstall probes for cmake / ninja / python3 / clang (macOS) or gcc (Linux/Windows) and will fail early if they're missing — install those first.