Subscribe on changes!

[compiler-sfc] getImportsExpressionExp misuses the import cache with "hoisted" urls

avatar
Sep 14th 2021

Version

3.2.11

Reproduction link

github.com

Steps to reproduce

yarn install
yarn serve

Open the page then the devtool

What is expected?

The image should be present twice. The <use> tags should both have href="[...].svg#logo"

What is actually happening?

The image is present only once. The second <use> tag has href="[...].svg", missing the #logo


I'm making a PR to fix it.