0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

test(compiler-test-utils): Rsbuild dev harness hmr option and hot-update chunks

H7: `createRsbuildDevServer({ hmr })` sets Rsbuild's `dev.hmr`;
`hotUpdates()` returns the hot-update chunks of the last compile, and
`outputs()` leaves hot-update files out. The default stays off (Rsbuild's
is on): with it on, 15 tests of router-plugin and start-plugin-core fail,
because the emitted chunks carry Rsbuild's HMR client, which throws when a
test evaluates the output outside a browser, and tests that look for a
module's chunk miss it. Control: with `hmr: true` an edit emits a
hot-update chunk with the new marker; with `hmr: false` none.

No status change in the five packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-18 11:34:10 +02:00
commit aabb82fead
No known key found for this signature in database
2 changed files with 92 additions and 8 deletions