mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(solid-router): a Solid split chunk imported again answers its newest evaluation on Rsbuild/webpack (temporary workaround of web-infra-dev/rspack#16594)
With lazy compilation on (Rsbuild's dev default), a later import() of a module that accepts its own updates answers its first namespace; solid-refresh makes every Solid split chunk such a module. Design 7b, built as a temporary, self-contained workaround the user authorized: - solid-router `src/hmr-chunk-importer.ts` (new): records each chunk evaluation's handed-over exports; `__tsrChunkImporter` answers the newest. Hooked in `hmr.ts` (record call, adapter `retire`, re-export). - router-plugin `planners/split.ts` `chunkImporterCall`: Solid, dev client, webpack-style hosts: each group's importer is wrapped. - router-core: one keep rule for the hot slot: an evaluation a chunk handed over is decided by `keepPatched`, any other by `keep`; `settleWith` loses its `keep` parameter (general, stays when the workaround goes). Unpins the grouped-loader KNOWN-BUGS row; upstream-table row says what to delete once rspack#16594 is fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b1987ded65
commit
38737e2d5b
8 changed files with 278 additions and 54 deletions
Loading…
Add table
Add a link
Reference in a new issue