fix(build): preserve lazy RSC framework chunks - #2074
Conversation
|
/bigbonk review for issues |
commit: |
|
|
@james-elicx Bonk workflow was cancelled. View workflow run · To retry, trigger Bonk again. |
|
/bigbonk review for issues |
1 similar comment
|
/bigbonk review for issues |
/bigbonk reviewReviewed the fix end-to-end, including reproducing the regression locally. This is a correct, well-targeted fix and I recommend merging. Verification performed
Findings1. The new dedicated regression test does not actually catch the regression on its own (test design weakness). When I reverted the fix, the suite failed at So the regression is caught by this suite, but via the
This is a polish suggestion, not a blocker — the regression is covered. 2. The PR correctly scopes out the separate Non-issues confirmed
Nice fix. The root-cause analysis matches #2073 exactly and the |
|
Posted my review to PR #2074. Summary of findings: Verdict: Correct, well-targeted fix — recommend merging. What I verified:
Findings:
Non-issues confirmed: the |
|
Addressed the test-design finding in a655ef5. The production build now completes in |
|
/bigbonk review for issues |
/bigbonk reviewThe fix is correct and well-targeted: ask-bonk's earlier review and the author's 1. The Vite 7
|
|
Posted my review to PR #2074. Summary: Verdict: Correct, well-targeted fix — recommend merging. I confirmed Since ask-bonk and the author already resolved the test-design concern, I focused on what was left. Two non-blocking findings:
Confirmed as non-issues: the |
|
Addressed both findings in 4e5d25c. The Vite 7 |
|
/bigbonk review for issues |
/bigbonk reviewReviewed and verified the fix end-to-end, including the negative case. This is a correct, well-targeted fix and I recommend merging. Verification performed
Findings (all non-blocking)1. Vite 7 transitive static-reachability path is untested. The new Vite 7 unit test ( 2. Non-issues confirmed
Nice fix — the root-cause analysis matches #2073, the |
|
Posted my review to PR #2074. Verdict: Correct, well-targeted fix — recommend merging. Key verification I performed beyond the prior reviews:
Two non-blocking findings:
Confirmed as non-issues: the I left the working tree clean (restored |
|
Addressed the remaining coverage finding in e0335f5. The Vite 7 |
|
/bigbonk review for issues |
/bigbonk reviewReviewed end-to-end and reproduced the negative case for the dedicated test. Correct, well-targeted fix — recommend merging. Prior bonk reviews and the author's Verification performed
Findings (all minor / non-blocking)1. 2. The dedicated test relies on an implicit Non-issues confirmed
Nice fix. Root-cause analysis matches #2073, |
|
Posted my review to PR #2074. Verdict: Correct, well-targeted fix — recommend merging. I verified the fix end-to-end rather than relying on prior reviews:
Two minor, non-blocking findings:
Confirmed as non-issues: the |
|
Addressed both minor findings in adc1287. |
|
/bigbonk review for issues |
1 similar comment
|
/bigbonk review for issues |
/bigbonk reviewReviewed end-to-end and independently reproduced the negative case. Correct, well-targeted fix — recommend merging. The prior bonk reviews plus the author's Verification performed
Findings (all minor / non-blocking)1. The RSC build does not set 2. Non-issues confirmed
Nice fix. Root-cause analysis matches #2073, |
|
Posted my review to PR #2074. Verdict: Correct, well-targeted fix — recommend merging. I verified the fix end-to-end independently rather than relying on prior reviews:
Two minor, non-blocking findings:
Confirmed as non-issues: the |
Summary
react-dom/server.edgestubs from being evaluated at Worker startupglobal-not-foundCSS orderingRoot cause
Rolldown's framework group merged every matching React module into one chunk by default. A lazy
import("react-dom/server.edge")could therefore place React's throwingserver.react-server.jsstub in the same framework chunk statically imported by the RSC entry.Setting
entriesAware: truekeeps matching framework modules grouped by the entry points that actually use them. Lazy-only React modules remain behind their dynamic import instead of moving onto the Worker startup path.Next.js comparison
Next.js does not create its client-style framework chunk for App Router server builds. It also aliases legacy
react-dom/server.edgeimports in server-component builds. This change addresses vinext's additional eager-chunk regression without attempting to resolve the separate RSC export-condition behavior tracked in #1237 and #1891.Validation
vp test run tests/build-optimization.test.ts tests/app-router-global-not-found-css-order.test.ts— 116 tests passedvp check— formatting, lint, and type checks passedvinextandexamples/fumadocs-docs-templatedist/server/index.jsdoes not throwwrangler deploy --dry-run --no-bundleaccepts the Fumadocs artifactFixes #2073