Repository navigation
perf(build): use native typeof window folding - #2564
Conversation
commit: |
|
Performance benchmarksCompared 1 improved · 0 regressed · 5 within ±1.5%
View detailed results and traces 🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head |
|
/bigbonk review for issues |
Review: perf(build): use native typeof window foldingReviewed the change end-to-end (plugin-RSC scan-build internals, native define wiring, dev/prod parity, and test coverage). This is a clean, well-reasoned change. No blocking issues. Verified correct
Minor, non-blocking notes
Nice result on the -8.2% production build time. LGTM. |
|
Review posted to PR #2564. SummaryI reviewed PR #2564 ( Key verifications:
Non-blocking notes raised:
|
|
/bigbonk review for issues |
|
@james-elicx Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
|
/bigbonk review for issues |
|
/bonk review the latest PR head for issues |
|
APIError: Function tools with reasoning_effort are not supported for gpt-5.5 in /v1/chat/completions. Please use /v1/responses instead. |
|
/bigbonk review for issues, scoped to the latest commit 09b04d4 only (the apply: build addition and cacheDir regression test). Post a concise blocker/no-blocker verdict. |
Review: latest commit `09b04d4` only (test(build): tighten typeof window scan plugin)Scoped strictly to this commit — the `apply: "build"` addition and the cacheDir regression test. Verdict: no blocker. ✅ `apply: "build"` on `vinext:typeof-window-scan`
cacheDir regression test
Verification
Minor, non-blocking
LGTM for this commit. |
|
Reviewed the latest commit Verdict: no blocker. ✅ The commit does exactly two things, both sound:
Verified: |
Summary
typeof windowdefines so real client/server builds use Oxc/Rolldown foldingPerformance
The custom AST fold no longer runs for normal production modules. It is limited to plugin-RSC's two analysis builds and is invoked only for modules matching the native
typeof windowhook filter.Same-worktree hyperfine A/B on the action fixture showed no regression; the analysis fold trended 5-8% faster because dead imports were omitted from the synthetic scan graph.
Validation
pnpm exec vitest run tests/type-of-window.test.ts