Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(start): support Vite 8.4 - #8995

Open
schiller-manuel wants to merge 1 commit into
mainfrom
codex/bump-vite-8-4
Open

schiller-manuel wants to merge 1 commit into
mainfrom
codex/bump-vite-8-4

Conversation

@schiller-manuel

@schiller-manuel schiller-manuel commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

🎯 Changes

  • Bump the workspace Vite catalog to ^8.4.0 and regenerate the lockfile with Vite 8.4.0 and Rolldown 1.3.3. pnpm also re-resolved the router plugin's existing optional vite-plugin-solid peer to 2.11.11.
  • Type the import attributes Start forwards to Vite and retain source-map indices when Rolldown returns unnamed sources.

Validation

  • Passed 30 Playwright modes or shards across seven projects, including React Router, React/Solid/Vue Start, React HMR, and import protection in Vite and Rsbuild.
  • Passed the selected package unit, TypeScript, lint, and build checks.
  • Compared all 18 client bundle scenarios with Vite 8.3.8. Gzip deltas range from −26 B to +271 B (+0.26% for React Start Rsbuild full). The largest Vite delta is +169 B, and chunk counts are stable across all scenarios.

Local commands used an exact release-age exception for vite@8.4.0. The checked-in policy permits it starting November 27 at 10:59:36 UTC.

Vite can remove the need for the local assertion by adding its runtime attributes field to the resolveId hook options type.

Authored with Codex.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with the relevant test commands, or tests do not apply to this pull request.
  • I fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

Summary by CodeRabbit

  • Bug Fixes
    • Fixed import-protection type errors with Vite 8.4, including handling import attributes and source maps with unnamed sources.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes

This update adjusts import protection for Vite 8.4. Source-map handling replaces null source names with empty strings, and the resolver forwards import attributes. The workspace Vite version constraint and package changeset are updated.

Import protection compatibility

Layer / File(s) Summary
Normalize nullable source names
packages/start-plugin-core/src/import-protection/sourceLocation.ts
SourceMapLike.sources accepts null entries. Source-map normalization and raw-map conversion replace null entries with empty strings.
Forward Vite import attributes
packages/start-plugin-core/src/vite/import-protection-plugin/plugin.ts, pnpm-workspace.yaml, .changeset/public-goats-poke.md
resolveAgainstImporter forwards string-valued import attributes while preserving its other resolution options. The Vite catalog requirement changes to ^8.4.0, and a patch changeset records the fixes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: dogpawhat, sheraff

Merge Risk: Minimal · up to 1a0c3 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(start): support Vite 8.4" matches the main change. The PR bumps the Vite catalog to ^8.4.0 and adds type fixes for import attributes and unnamed source maps so Start works with Vite 8.4…
Description check Passed The description follows the template. It has the Changes section with motivation, the checklist, and the Release Impact section with a changeset noted. The validation details are thorough. Gaps: the a…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(start): support Vite 8.4" matches the main change. The PR bumps the Vite catalog to ^8.4.0 and adds type fixes for import attributes and unnamed source maps so Start works with Vite 8.4. It is concise, specific, and follows a conventional commit style.

Full details: Description check

Explanation

The description follows the template. It has the Changes section with motivation, the checklist, and the Release Impact section with a changeset noted. The validation details are thorough. Gaps: the author left the 'I fully understand the code in this pull request, including any code generated with AI assistance' box unchecked. The description also discloses AI authorship ('Authored with Codex'), as the template requires. The Changes section is concise and does not explain the import-attribute typing or source-map fix in detail, but the content is sufficient for reviewers.

Resolution

Optional: check the 'I fully understand the code' box only if the author confirms they understand the generated code. Optional: add a short code snippet showing the typed import attributes and the source-map null handling.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • 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.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 10b22c2 and 1a0c39f.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 4

  • .changeset/public-goats-poke.md
  • packages/start-plugin-core/src/import-protection/sourceLocation.ts
  • packages/start-plugin-core/src/vite/import-protection-plugin/plugin.ts
  • pnpm-workspace.yaml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1a0c39f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@tanstack/start-plugin-core Patch
@tanstack/react-start-rsc Patch
@tanstack/react-start Patch
@tanstack/solid-start Patch
@tanstack/vue-start Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nx-cloud

nx-cloud Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 1a0c39f

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ❌ Failed 8m 38s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1m 32s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-28 16:09:01 UTC

@socket-security

socket-security Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedvite@​8.3.8 ⏵ 8.4.09910082 +198100

View full report

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-28T16:02:29.778716Z 3bf8b5b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

1 package(s) bumped directly, 4 bumped as dependents.

🟩 Patch bumps

Package Version Reason
@tanstack/start-plugin-core 1.172.0 → 1.172.1 Changeset
@tanstack/react-start 1.169.7 → 1.169.8 Dependent
@tanstack/react-start-rsc 0.1.68 → 0.1.69 Dependent
@tanstack/solid-start 1.169.7 → 1.169.8 Dependent
@tanstack/vue-start 1.169.7 → 1.169.8 Dependent

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Benchmarks

  • Commit: c51bdc1e465c
  • Measured at: 2026-11-28T16:01:19.885Z
  • Baseline source: history:10b22c276ea7
  • Dashboard: bundle-size history

The following scenarios have bundle-size changes compared with the baseline:

Scenario Current (gzip) Initial (gzip) Raw Brotli Trend
react-router.minimal 84.1 KiB
+17 B
83.9 KiB
+17 B
261.2 KiB
-351 B
73.3 KiB
-23 B
▁▁▁▁▁▁▁▅▅▅▅█
react-router.full 87.6 KiB
-26 B
87.4 KiB
-28 B
273.1 KiB
-353 B
76.4 KiB
-29 B
▂▂▂▂▂▁▁████▁
solid-router.minimal 33.5 KiB
+80 B
33.3 KiB
+79 B
95.3 KiB
+60 B
30.2 KiB
-10 B
▁▁▁▁▁▁▁▄▄▄▄█
solid-router.full 38.3 KiB
+51 B
38.2 KiB
+51 B
110.2 KiB
+63 B
34.6 KiB
+9 B
▁▁▁▁▁▁▁▃▃▃▃█
vue-router.minimal 49.6 KiB
+131 B
49.5 KiB
+129 B
136.6 KiB
+63 B
44.8 KiB
+37 B
▁▁▁▁▁▁▁▃▃▃▃█
vue-router.full 55.1 KiB
+72 B
55.0 KiB
+72 B
154.7 KiB
+63 B
49.7 KiB
+54 B
▁▁▁▁▁▁▁▄▄▄▄█
react-start.minimal 97.0 KiB
+169 B
96.8 KiB
+168 B
302.1 KiB
-399 B
84.0 KiB
-156 B
▁▁▁▁▁▁▁▁▁▁▁█
react-start.query-integration 104.3 KiB
+123 B
104.2 KiB
+122 B
328.6 KiB
-400 B
90.5 KiB
+70 B
▁▁▁▁▁▁▁▂▂▂▂█
react-start.deferred-hydration 97.7 KiB
+169 B
96.8 KiB
+168 B
303.4 KiB
-399 B
84.8 KiB
-51 B
▁▁▁▁▁▁▁▂▂▂▂█
react-start.full 100.0 KiB
+125 B
99.8 KiB
+125 B
311.4 KiB
-368 B
86.7 KiB
+12 B
▁▁▁▁▁▁▁▂▂▂▂█
react-start.rsbuild.minimal 96.9 KiB
+210 B
96.7 KiB
+213 B
298.3 KiB
-16 B
83.5 KiB
+107 B
██▁▁▁▁▁▁▁▁▁▁
react-start.rsbuild.minimal-iife 97.3 KiB
+244 B
97.2 KiB
+246 B
299.2 KiB
-16 B
83.8 KiB
+34 B
██▁▁▁▁▁▁▁▁▁▁
react-start.rsbuild.full 100.2 KiB
+271 B
100.1 KiB
+274 B
307.9 KiB
-12 B
86.2 KiB
+167 B
██▁▁▁▁▁▁▁▁▁▂
solid-start.minimal 46.2 KiB
+15 B
46.1 KiB
+15 B
135.2 KiB
+55 B
41.2 KiB
-1 B
▁▁▁▁▁▁▁▇▇▇▇█
solid-start.deferred-hydration 49.3 KiB
+17 B
46.2 KiB
+17 B
142.5 KiB
+55 B
43.9 KiB
-13 B
▁▁▁▁▁▁▁▆▆▆▆█
solid-start.full 51.2 KiB
-11 B
51.1 KiB
-11 B
150.1 KiB
-23 B
45.4 KiB
+5 B
▁▁▁▁▁▁▁████▇
vue-start.minimal 65.5 KiB
+87 B
65.4 KiB
+88 B
185.8 KiB
+67 B
58.4 KiB
+19 B
▁▁▁▁▁▁▁▃▃▃▃█
vue-start.full 69.3 KiB
+94 B
69.1 KiB
+95 B
197.7 KiB
+63 B
61.6 KiB
-84 B
▁▁▁▁▁▁▁▄▄▄▄█

Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better.

@pkg-pr-new

pkg-pr-new Bot commented Nov 28, 2026

Copy link
Copy Markdown
More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@8995

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@8995

@tanstack/eslint-plugin-start

npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@8995

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@8995

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@8995

@tanstack/react-router-devtools

npm i https://pkg.pr.new/@tanstack/react-router-devtools@8995

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@8995

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@8995

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@8995

@tanstack/react-start-rsc

npm i https://pkg.pr.new/@tanstack/react-start-rsc@8995

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@8995

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@8995

@tanstack/router-core

npm i https://pkg.pr.new/@tanstack/router-core@8995

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@8995

@tanstack/router-devtools-core

npm i https://pkg.pr.new/@tanstack/router-devtools-core@8995

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@8995

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@8995

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@8995

@tanstack/router-utils

npm i https://pkg.pr.new/@tanstack/router-utils@8995

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@8995

@tanstack/solid-router

npm i https://pkg.pr.new/@tanstack/solid-router@8995

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/@tanstack/solid-router-devtools@8995

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@8995

@tanstack/solid-start

npm i https://pkg.pr.new/@tanstack/solid-start@8995

@tanstack/solid-start-client

npm i https://pkg.pr.new/@tanstack/solid-start-client@8995

@tanstack/solid-start-server

npm i https://pkg.pr.new/@tanstack/solid-start-server@8995

@tanstack/start-client-core

npm i https://pkg.pr.new/@tanstack/start-client-core@8995

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/@tanstack/start-fn-stubs@8995

@tanstack/start-plugin-core

npm i https://pkg.pr.new/@tanstack/start-plugin-core@8995

@tanstack/start-server-core

npm i https://pkg.pr.new/@tanstack/start-server-core@8995

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/@tanstack/start-static-server-functions@8995

@tanstack/start-storage-context

npm i https://pkg.pr.new/@tanstack/start-storage-context@8995

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@8995

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@8995

@tanstack/vue-router

npm i https://pkg.pr.new/@tanstack/vue-router@8995

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/@tanstack/vue-router-devtools@8995

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@8995

@tanstack/vue-start

npm i https://pkg.pr.new/@tanstack/vue-start@8995

@tanstack/vue-start-client

npm i https://pkg.pr.new/@tanstack/vue-start-client@8995

@tanstack/vue-start-server

npm i https://pkg.pr.new/@tanstack/vue-start-server@8995

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@8995

commit: 1a0c39f

@codspeed

codspeed Bot commented Nov 28, 2026

Copy link
Copy Markdown

Merging this PR will regress 3 benchmarks

2 warnings

⚠️ 62 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚠️ 6 benchmarks with a significant change ran on different hardware

Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚡ 8 improved benchmarks
❌ 3 regressed benchmarks
✅ 189 untouched benchmarks
⏩ 3 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory mem server error-paths redirect (solid) 11.5 KB 13.3 KB -13.51%
❌ Memory mem server error-paths redirect (vue) 12.9 KB 13.9 KB -6.89%
❌ Memory mem client interrupted-navigations (solid) 83.6 KB 88.3 KB -5.27%
⚡ CPU Simulation ssr control-flow error 500 (vue) 374.5 ms 352.8 ms +6.18%
⚡ Memory mem client navigation-churn (solid) 114.7 KB 109.2 KB +5.09%
⚡ Memory mem server error-paths error (vue) 136.9 KB 131.7 KB +3.96%
⚡ CPU Simulation ssr control-flow unmatched 404 (solid) 173.5 ms 167.9 ms +3.32%
⚡ CPU Simulation ssr control-flow unmatched 404 (vue) 399.2 ms 386.4 ms +3.32%
⚡ Memory mem client interrupted-navigations (vue) 97.3 KB 94.2 KB +3.27%
⚡ CPU Simulation ssr control-flow route headers (vue) 484.5 ms 470.2 ms +3.04%
⚡ CPU Simulation ssr not-found (solid) 143.8 ms 139.6 ms +3.01%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing codex/bump-vite-8-4 (1a0c39f) with main (10b22c2)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant