You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ea39c8f
Browse filesBrowse the repository at this point in the historyBrowse files
Under HMR, `import svg from './icon.svg?raw'` reached the device without
its query. The served-module rewriter routes a specifier by its path and
drops the query, so the device fetched `/ns/m/src/icon.svg`, got the asset
module (a URL) instead of the file's text, and `?raw` JSON imports were
inlined as the parsed object. The /ns/m route also discarded the query on
the way in, so it could not have served the text either.
The rewriter now routes a `?raw` specifier like the plain file and keeps
`?raw` on the resulting /ns/m URL, and leaves `?raw` JSON imports alone.
The /ns/m route serves a `?raw` request straight from Vite's raw load
(`export default "<text>"`). The `raw=1` diagnostics flag is not a `?raw`
import. Imports without `?raw` are unchanged.
0 commit comments