vite-selfbench / vite-pr-22269 /instruction.md
avyvar's picture
Add Vite Selfbench 27-task evaluation
8579f8a verified
|
Raw
History Blame
634 Bytes

Fix bundled development mode so generated HMR patch files cannot be consumed as classic scripts from untrusted origins, including non-potentially-trustworthy origins where browsers omit Sec-Fetch-* headers. Replace the existing fetch-metadata-based blocking strategy with protection carried by the patch itself: every generated full-bundle HMR patch must contain module-only ESM syntax while remaining loadable by Vite's HMR runtime and continuing to update the application correctly. The old global guard must no longer intercept ordinary dev-server script responses solely because they carry cross-origin, no-CORS fetch metadata.