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(ssr): ssrTransfrom with function declaration in scope, fix #4306 #5376

Merged
merged 2 commits into from Oct 21, 2021

Conversation

patak-dev
Copy link
Member

Description

See #4306 and added test cases for details. Shadowing for variable declarations was already taken into account, but not for function declarations.

Error for the test case before this PR for reference
image


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@patak-dev patak-dev added feat: ssr p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) p4-important Violate documented behavior or significantly improves performance (priority) and removed p3-downstream-blocker Blocking the downstream ecosystem to work properly (priority) labels Oct 21, 2021
@antfu antfu merged commit 5306632 into main Oct 21, 2021
@antfu antfu deleted the fix/ssr-transform-scopes branch October 21, 2021 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: ssr p4-important Violate documented behavior or significantly improves performance (priority)
Projects
None yet
3 participants