withastro
astro
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(compile): skip annotateSourceFile in test mode Vitest runs Vite with command:'serve' + mode:'test', so the annotateSourceFile condition was true during container tests. This caused experimental_AstroContainer.renderToString() to emit data-astro-source-file/loc attributes on every element, breaking tests that assert exact markup. Add mode !== 'test' guard. Fixes #18162
okxint:fix/annotate-source-file-test-mode
38 minutes ago
Fix injectRoute() entrypoints from packages with import-only exports resolveInjectedRoute() resolves a package entrypoint with CommonJS require.resolve(), which never matches an `import` export condition. For a package whose exports only define `import`, resolution fell through to treating the specifier as a path under the project root, and route creation failed with ENOENT. Fall back to ES module resolution from the project root before that path fallback. CommonJS resolution still runs first, so entrypoints that resolve today keep their targets. Native import.meta.resolve() can only resolve relative to the calling module (a parent URL needs --experimental-import-meta-resolve), so this uses import-meta-resolve, which is already in the lockfile.
masonjames:mj/inject-route-esm-exports
5 hours ago
Fix injectRoute() entrypoints from packages with import-only exports resolveInjectedRoute() resolves a package entrypoint with CommonJS require.resolve(), which never matches an `import` export condition. For a package whose exports only define `import`, resolution fell through to treating the specifier as a path under the project root, and route creation failed with ENOENT. Fall back to ES module resolution from the project root before that path fallback. CommonJS resolution still runs first, so entrypoints that resolve today keep their targets. Native import.meta.resolve() can only resolve relative to the calling module (a parent URL needs --experimental-import-meta-resolve), so this uses import-meta-resolve, which is already in the lockfile.
masonjames:mj/inject-route-esm-exports
5 hours ago
fix(astro): use rmSync in the Windows EPERM fallback so it works on Node.js 26 rmdirSync no longer accepts the recursive option in Node.js 26, so the fallback that emptyDir uses on a Windows EPERM threw ERR_INVALID_ARG_VALUE instead of removing the directory. rmSync takes the same options. Fixes #18170
hungateJoseph:fix/win-eperm-fallback-rmsync
7 hours ago
fix(routing): resolve a dynamic redirect destination written with a trailing slash
Kjubikstronk:redirect-destination-trailing-slash
9 hours ago
test: fix incremental prerenderer metadata test and lint
refactor/image-asset-tracking
15 hours ago
Fix custom View Transition direction names that are not valid CSS identifiers (#18179)
main
15 hours ago
refactor(assets): restore StaticImageRegistry
refactor/image-asset-tracking
16 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(compile): skip annotateSourceFile in Vite test mode
#18186
43 minutes ago
d05d1c3
okxint:fix/annotate-source-file-test-mode
CodSpeed Performance Gauge
0%
Fix `injectRoute()` entrypoints from packages with import-only exports
#18185
5 hours ago
39fd4be
masonjames:mj/inject-route-esm-exports
CodSpeed Performance Gauge
0%
Fix the Windows EPERM fallback in emptyDir on Node.js 26
#18184
7 hours ago
f634558
hungateJoseph:fix/win-eperm-fallback-rmsync
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs