Skip to content

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

@hl037

Description

@hl037

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions