Scarab Diagnostic Suite Field Test #003: Dev/Build Contract Drift in Vite

TL;DR AI
2 min readKey summary
Scarab Diagnostic Suite’s third field test examined Vite issue #21979 and found a contract drift in plugin transform hook filtering between dev and build.
A filter applied in dev mode did not behave the same in build mode, creating a mismatch that could hide build-time failures until later.
The fix was scoped to the build transform path so the filter is applied consistently across modes.
The repair was verified with a focused regression test plus build, type, and formatting checks.
