withastro
astro
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Invalidate importer modules in runner cache during HMR When an SSR-only module changes, moduleGraph.invalidateModule() recursively walks importers and populates the invalidatedModules set. However, the runner's evaluatedModules cache was only invalidated for the directly changed file. Barrel files (e.g. index.ts re-exporting components) stayed cached in the runner, so dynamic import() calls returned stale exports. Invalidate all modules in the invalidatedModules set in the runner cache, not just the directly changed ones. Fixes #16000
hmr-dynamic-import-stale
3 hours ago
Invalidate route cache when module identity changes after HMR The route cache stores getStaticPaths() return values keyed by route path, but never checked whether the module that produced those values had been re-evaluated. After HMR, components passed as props via getStaticPaths() remained stale even on manual refresh. Store the module reference in the cache entry and compare identity on lookup. A new module object (from a fresh import after HMR) causes the cache to miss, re-calling getStaticPaths() with updated references. Fixes #16522
hmr-route-cache-stale
3 hours ago
Invalidate route cache when module identity changes after HMR The route cache stores getStaticPaths() return values keyed by route path, but never checked whether the module that produced those values had been re-evaluated. After HMR, components passed as props via getStaticPaths() remained stale even on manual refresh. Store the module reference in the cache entry and compare identity on lookup. A new module object (from a fresh import after HMR) causes the cache to miss, re-calling getStaticPaths() with updated references. Fixes #16522
hmr-route-cache-stale
3 hours ago
fix(content): preserve empty alt attributes on markdown images in content collections (#16774)
main
4 hours ago
fix(content): preserve empty alt attributes on markdown images in content collections
flue/fix-16621
4 hours ago
Fix dev server serving stale content for files outside project root (#16757) * fix(hmr): return SSR-only modules from hotUpdate to propagate invalidation to module runner * fix(hmr): invalidate runner evaluated modules directly instead of returning modules to Vite Returning ssrOnlyModules from hotUpdate causes Vite's updateModules() to run propagateUpdate(), which always hits dead ends for SSR-only modules and triggers a heavy full-reload on the module runner that clears the entire evaluation cache. This caused E2E test failures across actions, cloudflare, HMR, and view transitions tests. Instead, directly invalidate the runner's evaluatedModules cache for each changed module (same pattern as vite-plugin-content-virtual-mod.ts) and return [] to tell Vite we handled it. For non-runnable environments (Cloudflare's workerd), send full-reload through environment.hot so the remote runner clears its cache. --------- Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
main
5 hours ago
[ci] format
main
6 hours ago
Overhaul errors for consistency and correctness (#16593) * Overhaul errors for consistency and correctness * Add changeset * wrong package, lol * Apply Armand's fixes Co-authored-by: Armand Philippot <git@armand.philippot.eu> * fix error messages in tests * Update packages/astro/src/core/errors/errors-data.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/core/errors/errors-data.ts --------- Co-authored-by: Armand Philippot <git@armand.philippot.eu> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
main
6 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
Invalidate importer modules in runner cache during HMR
#16777
3 hours ago
5eba863
hmr-dynamic-import-stale
CodSpeed Performance Gauge
0%
Invalidate route cache when module identity changes after HMR
#16776
3 hours ago
e29a210
hmr-route-cache-stale
CodSpeed Performance Gauge
0%
Preserve empty alt attributes for markdown images in content collections
#16774
3 days ago
71ceb65
flue/fix-16621
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs