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
use <img src="@/assets/logo.png"> load static image
build config legacy({ targets: ['ie >= 11', 'chrome > 49'] })
there will be new URL("logo.03d6d6da.png",import.meta.url).href in legacy chunk file. in chrome 55, import will cause error.
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 vuejs/core instead.
Describe the bug
use
<img src="@/assets/logo.png">
load static imagebuild config
legacy({ targets: ['ie >= 11', 'chrome > 49'] })
there will be
new URL("logo.03d6d6da.png",import.meta.url).href
in legacy chunk file. in chrome 55, import will cause error.Reproduction
Reproduction
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: