Skip to content

fix(vite): invalidate lazily-created SSR modules on render - #35410

Merged
danielroe merged 1 commit into
mainfrom
fix/ssr-hmr-invalidation
Jun 22, 2026
Merged

danielroe merged 1 commit into
mainfrom
fix/ssr-hmr-invalidation

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

fixes an issue detected in the flakiness of test suite - previously whether we invalidated modules in dev ssr was dependent on order - ie when vite had detected them. this pr collects info about changes so we can invalidate them lazily.

@github-actions github-actions Bot added 5.x 🐛 bug Something isn't working as expected labels Jun 22, 2026
@coderabbitai

This comment has been minimized.

@pkg-pr-new

pkg-pr-new Bot commented Jun 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

@nuxt/kit

npm i https://pkg.pr.new/@nuxt/kit@35410

@nuxt/nitro-server

npm i https://pkg.pr.new/@nuxt/nitro-server@35410

nuxt

npm i https://pkg.pr.new/nuxt@35410

@nuxt/rspack-builder

npm i https://pkg.pr.new/@nuxt/rspack-builder@35410

@nuxt/schema

npm i https://pkg.pr.new/@nuxt/schema@35410

@nuxt/vite-builder

npm i https://pkg.pr.new/@nuxt/vite-builder@35410

@nuxt/webpack-builder

npm i https://pkg.pr.new/@nuxt/webpack-builder@35410

commit: 31b7fa6

@codspeed

codspeed Bot commented Jun 22, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 19 untouched benchmarks
⏩ 3 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ loadNuxt in the basic test fixture 391.5 ms 445.5 ms -12.12%
⚡ loadNuxt in the basic test fixture (dev) 367.7 ms 329.9 ms +11.45%

Tip

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


Comparing fix/ssr-hmr-invalidation (31b7fa6) with main (0f68230)

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

@danielroe
danielroe merged commit b4d5046 into main Jun 22, 2026
32 checks passed
@danielroe
danielroe deleted the fix/ssr-hmr-invalidation branch June 22, 2026 20:01
@github-actions github-actions Bot mentioned this pull request Jun 22, 2026
2 of 5 tasks
@github-actions github-actions Bot mentioned this pull request Jun 24, 2026
@github-actions github-actions Bot mentioned this pull request Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.x 🐛 bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant