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): Improve output of minifier #1990

Merged
merged 237 commits into from
Aug 3, 2021

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Aug 2, 2021

swc_common:

  • Add Span.has_mark.

swc_ecma_codegen:

swc_ecma_minifier:

  • name mangler: Don't use keywords as an id.
  • properties: Optimize member expression with string properties.
  • inline: Inline some function expressions even if it's not fn-local.
  • analyzer: Track reassignment correctly.
  • analyzer: Track fn-local correctly.
  • sequences: Inject void if required.
  • inline: Inline function declarations correctly.
  • sequences: Merge expressions into test of if statements.
  • sequences: Reduce calls to an assigned variable.
  • Use Marks instead of &dyn Comments.

swc_ecma_transforms_optimization:

  • expr_simplifier: Fix infinite loops.

node/swc:

@kdy1 kdy1 modified the milestones: v1.2.71, v1.2.72 Aug 2, 2021
@kdy1 kdy1 changed the title fix(es/minifier): Implement more rules fix(es/minifier): Improve minifier Aug 3, 2021
@kdy1 kdy1 changed the title fix(es/minifier): Improve minifier fix(es/minifier): Improve output of minifier Aug 3, 2021
kdy1 added 25 commits August 3, 2021 23:36

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Verified

This commit was signed with the committer’s verified signature. The key has expired.
weihanglo Weihang Lo

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@kdy1 kdy1 marked this pull request as ready for review August 3, 2021 15:30
@kdy1 kdy1 enabled auto-merge (squash) August 3, 2021 15:31
@kdy1 kdy1 disabled auto-merge August 3, 2021 15:52
@kdy1 kdy1 merged commit f44e25c into swc-project:master Aug 3, 2021
@kdy1 kdy1 deleted the minifier-rules branch August 3, 2021 15:52
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
1 participant