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: dynamic import and require within call expr #898

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

PeachScript
Copy link
Member

修复在 call_expr 中的动态 require/import 未被正常转换的问题,原因是 visitor 没有继续 visit call_expr 的子节点

增加了两个用例:

  1. import(...).then(...),测试 call_expr -> member_expr -> call_expr 的场景
  2. import(...${require(...)}...),测试 call_expr -> call_expr 的场景

Copy link
Member

@stormslowly stormslowly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@PeachScript PeachScript merged commit f08ea42 into master Feb 28, 2024
8 checks passed
@delete-merged-branch delete-merged-branch bot deleted the hotfix/context-module-within-call-expr branch February 28, 2024 10:15
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.

2 participants