mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(start-plugin-core): import protection reports a Vue SFC importer at its position in the SFC without a source map
Review round 2 F4-2: in a default production build (the Vue plugins make no map), import protection located an SFC importer with the compiled script's coordinates (Vite src/C.vue:7:24, Rsbuild 4:24 for 10:24) and framed the compiled code, onViolation's importerLoc too. The compiler's own refusals already found the SFC's line by the statement's text. One owner now, originalPositions (reprinted.ts): through the input map, else the statement's line in the original text, else no position; the compiler's reports and import protection's edges both use it (mapLocate and vueLocator removed). MDX on Vite was right already (its plugin hands a map). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f83db6741c
commit
cd2c3b330c
5 changed files with 89 additions and 79 deletions
Loading…
Add table
Add a link
Reference in a new issue