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/minifier): Try inline value ignored assign #10053

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Conversation

Austaras
Copy link
Member

@Austaras Austaras commented Feb 19, 2025

Description:

Well this's kind of awkward

Related issue:

@Austaras Austaras requested a review from a team as a code owner February 19, 2025 09:03
Copy link

changeset-bot bot commented Feb 19, 2025

🦋 Changeset detected

Latest commit: 5172147

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -990,25 +1012,6 @@ impl Optimizer<'_> {
return Some(e.take());
}

Expr::Assign(AssignExpr {
op: op!("="),
Copy link
Member Author

Choose a reason for hiding this comment

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

This never get called because it's shadowed by previous branch.

@kdy1 kdy1 added this to the Planned milestone Feb 20, 2025
@kdy1 kdy1 requested a review from a team as a code owner February 20, 2025 01:53
@kdy1 kdy1 enabled auto-merge (squash) February 20, 2025 01:59
@kdy1 kdy1 disabled auto-merge February 20, 2025 01:59
@kdy1 kdy1 enabled auto-merge (squash) February 20, 2025 02:00
@kdy1 kdy1 disabled auto-merge February 20, 2025 02:00
@kdy1 kdy1 merged commit f0f842d into swc-project:main Feb 20, 2025
170 checks passed
@kdy1 kdy1 modified the milestones: Planned, v1.11.1 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

es/minifier: nested function inlining creates unneeded variables
2 participants