Skip to content

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

Development

Successfully merging this pull request may close these issues.

ESM Modules: ssrTransform blindly overwrites all functions named as an import instead of checking for a locally scoped function with the same name

4 participants