0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/docs
Sheraff 5035c8161d
fix(import-protection): dev log: 'always' asks onViolation at every compile, cached plans included
With `log: 'always'`, `onViolation` was asked when a plan was computed, so a
compile the plan cache answered did not ask again: a failed importer
(`behavior: 'error'`) rebuilt by Rspack or requested again from Vite threw
before asking, and Vite asked nothing when it compiled modules again (main
asks at every compile). The planner now decides only `log: 'once'` (its
session memo); with `'always'`, `ImportProtectionEnv.afterCompile` decides
every compile's violations through the same verdict as the edge-module
confirmation and the Rspack kept-module replay (`devVerdict`: a veto makes
the edge module serve the real module). This removes the Rsbuild loader's
cached-compile replay and its per-resource fingerprints. `log: 'once'` and
compiles without violations stay synchronous.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-10-29 17:27:19 +01:00
..
router fix(compiler): one purity seeding, empty defaultBehavior, live mutation view, nested server-fn order, opaque digests 2026-10-28 22:53:50 +01:00
start fix(import-protection): dev log: 'always' asks onViolation at every compile, cached plans included 2026-10-29 17:27:19 +01:00
AGENTS.md agents (#8258) 2026-09-15 22:36:13 +02:00