Repository navigation
Commit 772c00c
committed
fix(minify): keep reads, quotes, targets and dead zones the new folds missed
- count reads in `export default` and exported declarations before moving
an import to `export … from`
- keep a quoted imported name quoted in the re-export
- write `export * as` only where `ecma` is 2020 or later
- keep `[a][0]` as a property target of a destructuring assignment
- keep a direct `eval` out of a `for…in`/`for…of` head declaring `let`s
Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD1 parent 9df2c4e commit 772c00c
3 files changed
Lines changed: 56 additions & 12 deletions
File tree
- .changeset
- lib/javascript
- test/unitCases/javascript
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30454 | 30454 | | |
30455 | 30455 | | |
30456 | 30456 | | |
| 30457 | + | |
30457 | 30458 | | |
30458 | 30459 | | |
30459 | | - | |
| 30460 | + | |
30460 | 30461 | | |
30461 | 30462 | | |
30462 | 30463 | | |
| |||
30467 | 30468 | | |
30468 | 30469 | | |
30469 | 30470 | | |
30470 | | - | |
| 30471 | + | |
| 30472 | + | |
| 30473 | + | |
30471 | 30474 | | |
30472 | 30475 | | |
30473 | 30476 | | |
| |||
30503 | 30506 | | |
30504 | 30507 | | |
30505 | 30508 | | |
| 30509 | + | |
30506 | 30510 | | |
30507 | 30511 | | |
30508 | | - | |
| 30512 | + | |
30509 | 30513 | | |
30510 | 30514 | | |
30511 | 30515 | | |
30512 | 30516 | | |
30513 | 30517 | | |
30514 | 30518 | | |
30515 | 30519 | | |
30516 | | - | |
| 30520 | + | |
| 30521 | + | |
30517 | 30522 | | |
30518 | 30523 | | |
30519 | 30524 | | |
| |||
30533 | 30538 | | |
30534 | 30539 | | |
30535 | 30540 | | |
30536 | | - | |
| 30541 | + | |
30537 | 30542 | | |
30538 | 30543 | | |
30539 | | - | |
30540 | | - | |
| 30544 | + | |
| 30545 | + | |
30541 | 30546 | | |
30542 | 30547 | | |
30543 | 30548 | | |
| |||
31189 | 31194 | | |
31190 | 31195 | | |
31191 | 31196 | | |
31192 | | - | |
| 31197 | + | |
| 31198 | + | |
| 31199 | + | |
31193 | 31200 | | |
31194 | 31201 | | |
31195 | 31202 | | |
| |||
31790 | 31797 | | |
31791 | 31798 | | |
31792 | 31799 | | |
31793 | | - | |
| 31800 | + | |
31794 | 31801 | | |
31795 | 31802 | | |
31796 | 31803 | | |
| |||
38093 | 38100 | | |
38094 | 38101 | | |
38095 | 38102 | | |
| 38103 | + | |
38096 | 38104 | | |
38097 | | - | |
| 38105 | + | |
| 38106 | + | |
| 38107 | + | |
38098 | 38108 | | |
38099 | 38109 | | |
38100 | 38110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2079 | 2079 | | |
2080 | 2080 | | |
2081 | 2081 | | |
| 2082 | + | |
| 2083 | + | |
2082 | 2084 | | |
2083 | 2085 | | |
2084 | 2086 | | |
| |||
9561 | 9563 | | |
9562 | 9564 | | |
9563 | 9565 | | |
9564 | | - | |
| 9566 | + | |
| 9567 | + | |
| 9568 | + | |
| 9569 | + | |
| 9570 | + | |
| 9571 | + | |
9565 | 9572 | | |
9566 | 9573 | | |
9567 | 9574 | | |
| 9575 | + | |
| 9576 | + | |
| 9577 | + | |
| 9578 | + | |
| 9579 | + | |
| 9580 | + | |
| 9581 | + | |
| 9582 | + | |
| 9583 | + | |
| 9584 | + | |
| 9585 | + | |
| 9586 | + | |
| 9587 | + | |
| 9588 | + | |
| 9589 | + | |
| 9590 | + | |
| 9591 | + | |
| 9592 | + | |
| 9593 | + | |
| 9594 | + | |
| 9595 | + | |
| 9596 | + | |
| 9597 | + | |
| 9598 | + | |
| 9599 | + | |
| 9600 | + | |
| 9601 | + | |
9568 | 9602 | | |
9569 | 9603 | | |
9570 | 9604 | | |
| |||
0 commit comments