0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/docs/start/framework
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
..
react fix(import-protection): dev log: 'always' asks onViolation at every compile, cached plans included 2026-10-29 17:27:19 +01:00
solid Start stable (#8696) 2026-10-13 00:45:16 +02:00