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:
parent
d153f34929
commit
394c5aa93b
4 changed files with 109 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue