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

fix(start-plugin-core): import-protection reports print a code frame

SPEC J6.5 requires a code frame in the report; the import-edges planner
located violations but recorded no source text, so reports (and
onViolation's optional snippet) had none. The planner now records the
original lines around the location (the input text, or the input map's
sourcesContent) for each violation. Oracle: reported-location-trace
'the printed report shows the importer's original source at its
location' (Vite and Rsbuild).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-25 11:12:45 +01:00
commit 394c5aa93b
No known key found for this signature in database
4 changed files with 109 additions and 6 deletions