Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compiler-sfc): #4581 getImportsExpressionExp with hash #4582

Conversation

hl037
Copy link

@hl037 hl037 commented Sep 14, 2021

Fixes #4581

Subsequent calls with an url already in the import cache
and with a hash returns the correct expression including each time the
hash if one.

NOTE: this relies on the fact that exp.content is assigned the variable name, since it's the only way to get it back from the cache, and that feels "hacky". A better solution may be possible

Subsequent calls with an url already in the import cache
and with a hash returns the correct expression including each time the
hash if one.
@yyx990803
Copy link
Member

Thanks for the PR - I think a better fix would be reusing the hoisted fragment URLs when possible. See 06c5bf5

@yyx990803 yyx990803 closed this Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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