fix: multi declarator tree shake#1564
Merged
Merged
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
Contributor
Benchmarks Rust |
IWANABETHATGUY
commented
Jul 10, 2024
|
|
||
| //#region foo.js | ||
| const foo = 'foo'; | ||
| const [c, d] = [1, 2]; |
Member
Author
There was a problem hiding this comment.
Both c and d is kept, align with esbuild,
Maybe we could support more advanced tree shaking in the future.
Member
Author
IWANABETHATGUY
force-pushed
the
fix/multi-declaration-tree-shake
branch
from
July 10, 2024 03:04
a033621 to
60d2afd
Compare
IWANABETHATGUY
commented
Jul 10, 2024
| expect(map.file).toMatchInlineSnapshot(`"main.js"`) | ||
| expect(map.mappings).toMatchInlineSnapshot( | ||
| `";;AAAO,MAAM,MAAM;;;;ACEnB,QAAQ,IAAI,IAAI"`, | ||
| `";;AAAA,MAAa,MAAM;;;;ACEnB,QAAQ,IAAI,IAAI"`, |
Member
Author
IWANABETHATGUY
marked this pull request as ready for review
July 10, 2024 03:05
chore: 🤖 update chore: 🤖 update chore: 🤖 update chore: 🤖 update chore: 🤖 update chore: 🤖 update chore: 🤖 update
IWANABETHATGUY
force-pushed
the
fix/multi-declaration-tree-shake
branch
from
July 10, 2024 03:05
60d2afd to
c435721
Compare
IWANABETHATGUY
enabled auto-merge
July 10, 2024 03:06
hyfdev
approved these changes
Jul 10, 2024
IWANABETHATGUY
added this pull request to the merge queue
Jul 10, 2024
IWANABETHATGUY
marked this pull request as draft
July 10, 2024 03:15
auto-merge was automatically disabled
July 10, 2024 03:15
Pull request was converted to draft
IWANABETHATGUY
marked this pull request as ready for review
July 10, 2024 03:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
for case:
Before
After