mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(start-plugin-core): define Rsbuild import-protection edge modules from their request
An importer Rspack restores from its persistent cache (performance.buildCache) in a new process requests edge modules nothing registered: the warm build failed with "Can't resolve .../edge.<key>.mjs" for every edge module. The importer's request now carries the module's content (?tss-ip=<base64url>, checked against the key that digests it); a normalModuleFactory beforeResolve tap defines unknown edge modules and the runtime from it before they resolve. The rewrite of every known edge module at thisCompilation is gone. Tests: Rsbuild cold+warm builds with buildCache in error and mock mode and with an onViolation veto; Rsbuild dev edits that add a .server import, add or remove a server-only marker of an unchanged importer's dependency (upstream #8798, #8801 scenarios). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
53ea64a8ba
commit
8aa581eb0f
8 changed files with 417 additions and 55 deletions
Loading…
Add table
Add a link
Reference in a new issue