Repository navigation
docs: extend agent performance and Webpack guidance - #8267
LadyBluenotes wants to merge 11 commits into
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Contributor validation and skill references AGENTS.md, e2e/AGENTS.md, packages/AGENTS.md, packages/router-plugin/AGENTS.md |
Repository and package instructions add guidance on validation, troubleshooting, test discovery, and HMR behavior. The root instructions link to the performance-review and bundle-size skills. |
Performance review procedures skills/performance-review/SKILL.md, skills/performance-review/references/checks.md |
The new skill defines check selection, comparable measurements, investigation, and regression validation. Its reference covers build tools, HMR, runtime lifecycles, deployment caching, browser and server measurements, and review of the procedures. |
Bundle-size optimization checks skills/bundle-size-optimization/SKILL.md |
The skill revises build coordination, benchmark comparisons, optimization review, runtime measurement, post-optimization validation, and dead-code-elimination checks. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Possibly related issues
- [Start] vite build keeps every environment's server-fn compiler alive until the build ends (memory stacks across client → ssr → server) #8794: The new guidance covers compiler instances, build phases, cache lifetimes, and memory checks.
- router.load() resolves before an ancestor boundary's code-split errorComponent is loaded (regression in 1.170.19) #8792: The new guidance includes emitted-chunk and lifecycle checks related to chunk loading and readiness.
- ssr.nonce set after the router is created no longer reaches the hydration scripts (regression in 1.171.31) #8789: The new guidance covers hydration scheduling and script-execution checks.
- ssr:false: redirect thrown in a child beforeLoad during the initial load blanks the app (MatchInner throws
undefined), reproducer for #7910 #8783: The new guidance includes checks for disabled features, hydration scheduling, and navigation lifecycle behavior. - router-ssr-query-core: reader.releaseLock() can deadlock WebKit's GC after hydration #8795: The new guidance covers runtime cleanup, hydration, and RSC diagnostics.
Possibly related PRs
- TanStack/router#8806: The performance-review guidance includes dependency-upgrade and stream-lifecycle checks.
- TanStack/router#8541: The router-plugin instructions cover generated statements and HMR accept/dispose behavior.
- TanStack/router#8797: The performance-review procedures cover compiler lifetimes, cleanup, and build-tool validation.
Suggested labels: documentation
Suggested reviewers: schiller-manuel
Merge Risk: 
Minimal · up to b8476
-
No actionable merge-blocking risk is established in the documentation and guidance changes.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title "docs: extend agent performance and Webpack guidance" matches the main change. The PR adds performance-review guidance (new skill and references) and extends the bundle-size and AGENTS.md guidance with Webpack-specific checks. The title is specific and follows the conventional-commit style. It omits the replacement of commit/stash steps and the benchmark-provenance changes, but those are secondary details.
Full details: Docstring Coverage
-
Explanation
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
|
View your CI Pipeline Execution ↗ for commit b84762f
☁️ Nx Cloud last updated this comment at |
Bundle Size BenchmarksThis pull request does not affect bundle size in any measured scenario. |
Merging this PR will degrade performance by 8.47%2 warnings, 1 note
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
07d86bc to
ce1aab4
Compare
| @@ -1,6 +1,6 @@ | |||
| --- | |||
| name: bundle-size-optimization | |||
| description: Use when working in this repository on JS bundle size, gzip regressions, benchmark scenarios, source attribution, treeshaking, dead code elimination, or Rolldown annotations. | |||
| description: Use when working in this repository on JS bundle size, gzip regressions, benchmark scenarios, source attribution, treeshaking, dead code elimination, or bundler annotations, including Webpack. | |||
There was a problem hiding this comment.
mention both rolldown and webpack or none of them
# Conflicts: # AGENTS.md # benchmarks/AGENTS.md
|
🎯 Changes
Stacked on #8258 and targeting
agents-redone.Adds scoped performance-review guidance for evidence, coverage, finding capture, and benchmark provenance. Webpack checks cover build phases, production mode versus host environment, source maps, cache invalidation, multiple compiler instances, and emitted chunks/side effects.
Adds lifecycle checks for disabled features, router replacement, hydration scheduling, script execution, devtools, and RSC diagnostics. Keeps the full bundle measurement and attribution workflow while replacing mandatory commits/stashing and a fixed reviewer count with isolated comparisons and explicit authority.
✅ Checklist
🚀 Release Impact
Summary by CodeRabbit