Relative URLs in srcset are not transformed #4819
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
It looks like
@vue/compiler-sfc
has a bug, introduced inv3.0.0-beta.9
when adding support for absolute URLs insrcset
. This bug bypasses the transformation that would've resolved the asset URLs insrcset
.Version
3.2.20
Reproduction link
https://github.com/tony19-sandbox/vue-srcset-relative-urls-bug
Steps to reproduce
<img>
with asrcset
that contains relative URLs with path aliases:Start the dev server with
yarn dev
.Observe no image is shown in the browser, and that the
<img>.srcset
URLs are unresolved.What is expected?
srcset
URLs are resolved:What is actually happening?
srcset
URLs are unresolved:The text was updated successfully, but these errors were encountered: