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

feat(es/minifier): Ignore return value if a param of IIFE is not used #6115

Merged
merged 19 commits into from
Oct 14, 2022

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Oct 11, 2022

Description:

Related issue:

@kdy1 kdy1 added this to the Planned milestone Oct 11, 2022
@kdy1 kdy1 self-assigned this Oct 11, 2022
Copy link
Member Author

@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_minifier

@kdy1 kdy1 marked this pull request as ready for review October 11, 2022 05:01
kodiakhq[bot]
kodiakhq bot previously approved these changes Oct 11, 2022
@kdy1 kdy1 mentioned this pull request Oct 11, 2022
8 tasks
jridgewell
jridgewell previously approved these changes Oct 11, 2022
Copy link
Contributor

@jridgewell jridgewell left a comment

Choose a reason for hiding this comment

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

Is it possible to start adding test cases for the explicit feature under test? It seems we're testing indirectly, by updating the outputs to (extremely large) built projects. Particularly for negative cases (eg, I wanted to see that arguments[0] usage inside an arrow would deoptimize), but because a test outputs are already committed, I would need to scan through every file in the project to see the case.

@kdy1 kdy1 dismissed stale reviews from jridgewell and kodiakhq via 6abf6a2 October 11, 2022 23:29
@kdy1
Copy link
Member Author

kdy1 commented Oct 11, 2022

I'll add small tests starting from the next PR

@kdy1 kdy1 enabled auto-merge (squash) October 11, 2022 23:30
kodiakhq[bot]
kodiakhq bot previously approved these changes Oct 11, 2022
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

kodiakhq[bot]
kodiakhq bot previously approved these changes Oct 12, 2022
kodiakhq[bot]
kodiakhq bot previously approved these changes Oct 12, 2022
kodiakhq[bot]
kodiakhq bot previously approved these changes Oct 12, 2022
kodiakhq[bot]
kodiakhq bot previously approved these changes Oct 13, 2022
jridgewell
jridgewell previously approved these changes Oct 14, 2022
@kdy1 kdy1 enabled auto-merge (squash) October 14, 2022 00:58
Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

Copy link
Collaborator

@swc-bot swc-bot left a comment

Choose a reason for hiding this comment

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

Automated review comment generated by auto-rebase script

@kdy1 kdy1 merged commit d334c6e into swc-project:main Oct 14, 2022
@kdy1 kdy1 deleted the minifier-5 branch October 14, 2022 02:58
@kdy1 kdy1 modified the milestones: Planned, v1.3.9 Oct 17, 2022
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 16, 2022
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.

None yet

3 participants