mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test: guard production bundles and Solid's cold start against the dev hot slot
The framework routers' `lazyRouteComponent` imports router-core's dev-only `/hmr` entry and drops it in production only by dead-code removal. The production-bundle check compared the build with a control build that bundles the same framework code, so a leak would not show: it now also asserts the bundle carries none of the dev runtime's markers (the hot slot's `__tsrHot`, the route HMR entry `__tsrRouteHmr`), for every bundler and framework it builds. The cold-start check of Start's Vite dev server gets a Solid row (the page hydrates in its first document). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1eafa3c13c
commit
fa61e70966
2 changed files with 55 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue