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(es/typescript): Rename wrong unresolved_mark #8018

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

magic-akari
Copy link
Member

Description:

This is just a typo fix. No functional changes are expected.
However, correcting the wrong parameter name will avoid confusing our Rust-side users.

BREAKING CHANGE:

Related issue (if exists):

@magic-akari magic-akari mentioned this pull request Sep 27, 2023
1 task
@@ -1101,7 +1101,7 @@ impl Transform {
expr.make_assign_to(
op!("="),
member_expr!(
DUMMY_SP.apply_mark(self.unresolved_mark),
DUMMY_SP.apply_mark(self.top_level_mark),
module.exports
Copy link
Member Author

Choose a reason for hiding this comment

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

It does look like unresolved_mark needs to be used here instead of top_level_mark, I'll confirm that later.

Copy link
Member Author

Choose a reason for hiding this comment

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

However, TsImportExportAssignConfig::Classic is not used in any part of the code, so it may be unnecessary to handle it here.

@magic-akari magic-akari marked this pull request as draft September 27, 2023 11:36
@magic-akari magic-akari marked this pull request as ready for review September 27, 2023 11:42
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_ecma_transforms_typescript

@kdy1 kdy1 enabled auto-merge (squash) September 27, 2023 14:34
@kdy1 kdy1 added this to the Planned milestone Sep 27, 2023
@kdy1 kdy1 merged commit 5817268 into swc-project:main Sep 27, 2023
127 checks passed
@magic-akari magic-akari deleted the fix/issue-8016 branch September 28, 2023 02:38
@kdy1 kdy1 modified the milestones: Planned, v1.3.91 Oct 1, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect error Import declarations in a namespace cannot reference a module?
2 participants