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
var P="data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgICA8bWV0YSBjaGFyc2V0PSJVVEYtOCIvPgogICAgPHRpdGxlPlRPRE88L3RpdGxlPgo8L2hlYWQ+Cjxib2R5PgpUT0RPCjwvYm9keT4KPC9odG1sPgoK";console.log(P);
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
i agree with issue opener. its a bit of a gray area whether data uris are urls at all. personally i think they are not since they dont specify a "locator" of any kind, so i dont expect them to ever be returned when specifying ?url.
Perhaps a solution is to never inline HTML assets, I can't think of a usecase where that is helpful. We also have this hardcoded "dont-inline" behaviour for SVGs too.
Describe the bug
Explicit URL Imports should import as a URL but it is being imported as data:text/html;base64.
Reproduction
https://github.com/steinybot/bug-reports/tree/vite/import-url
results in:
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: