Repository navigation
Commit 8050699
authored
* feat(minify): close oxc gaps, and keep `delete (null ?? x)` and `(null ?? o.f)()`
Drop an unused catch binding from ECMAScript 2019 on, join the `if` the
tail return leaves in another, dot a key past ASCII, drop what a loop's
update does not run, and read a constructor's `this` as an object. Fix
`??` folding to a bare reference where `delete` or a call reads its binding.
Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD
* test: retire next/66237 from the corpus files oxc minifies smaller
Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD
* fix(minify): keep a constructor's `this.x` read a getter may answer
Reading `this` in a constructor as never throwing let an unused
`this.x` drop, losing a getter's effect; terser keeps it too.
Claude-Session: https://claude.ai/code/session_01ViD41i2KdwwGxrDk7yrjeD
1 parent 82501c3 commit 8050699
4 files changed
Lines changed: 132 additions & 14 deletions
File tree
- .changeset
- lib/javascript
- test
- helpers
- unitCases/javascript
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29106 | 29106 | | |
29107 | 29107 | | |
29108 | 29108 | | |
| 29109 | + | |
29109 | 29110 | | |
29110 | 29111 | | |
29111 | 29112 | | |
29112 | 29113 | | |
| 29114 | + | |
| 29115 | + | |
| 29116 | + | |
| 29117 | + | |
| 29118 | + | |
| 29119 | + | |
| 29120 | + | |
| 29121 | + | |
| 29122 | + | |
| 29123 | + | |
| 29124 | + | |
| 29125 | + | |
| 29126 | + | |
| 29127 | + | |
| 29128 | + | |
| 29129 | + | |
| 29130 | + | |
| 29131 | + | |
| 29132 | + | |
| 29133 | + | |
| 29134 | + | |
| 29135 | + | |
| 29136 | + | |
| 29137 | + | |
| 29138 | + | |
| 29139 | + | |
| 29140 | + | |
| 29141 | + | |
29113 | 29142 | | |
29114 | 29143 | | |
29115 | 29144 | | |
| |||
32937 | 32966 | | |
32938 | 32967 | | |
32939 | 32968 | | |
32940 | | - | |
| 32969 | + | |
| 32970 | + | |
32941 | 32971 | | |
32942 | 32972 | | |
32943 | 32973 | | |
32944 | 32974 | | |
| 32975 | + | |
| 32976 | + | |
| 32977 | + | |
| 32978 | + | |
| 32979 | + | |
| 32980 | + | |
| 32981 | + | |
| 32982 | + | |
| 32983 | + | |
| 32984 | + | |
| 32985 | + | |
| 32986 | + | |
| 32987 | + | |
| 32988 | + | |
| 32989 | + | |
| 32990 | + | |
| 32991 | + | |
| 32992 | + | |
| 32993 | + | |
| 32994 | + | |
| 32995 | + | |
| 32996 | + | |
| 32997 | + | |
| 32998 | + | |
| 32999 | + | |
| 33000 | + | |
| 33001 | + | |
| 33002 | + | |
| 33003 | + | |
32945 | 33004 | | |
32946 | 33005 | | |
32947 | 33006 | | |
| |||
44789 | 44848 | | |
44790 | 44849 | | |
44791 | 44850 | | |
| 44851 | + | |
| 44852 | + | |
| 44853 | + | |
| 44854 | + | |
| 44855 | + | |
| 44856 | + | |
| 44857 | + | |
| 44858 | + | |
| 44859 | + | |
| 44860 | + | |
44792 | 44861 | | |
44793 | | - | |
| 44862 | + | |
44794 | 44863 | | |
44795 | 44864 | | |
44796 | 44865 | | |
44797 | 44866 | | |
44798 | 44867 | | |
44799 | | - | |
| 44868 | + | |
44800 | 44869 | | |
44801 | 44870 | | |
44802 | 44871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | 240 | | |
242 | 241 | | |
243 | | - | |
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
| |||
303 | 301 | | |
304 | 302 | | |
305 | 303 | | |
306 | | - | |
307 | 304 | | |
308 | 305 | | |
309 | 306 | | |
| |||
356 | 353 | | |
357 | 354 | | |
358 | 355 | | |
359 | | - | |
360 | 356 | | |
361 | 357 | | |
362 | 358 | | |
| |||
569 | 565 | | |
570 | 566 | | |
571 | 567 | | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | 568 | | |
580 | 569 | | |
581 | 570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9109 | 9109 | | |
9110 | 9110 | | |
9111 | 9111 | | |
| 9112 | + | |
| 9113 | + | |
| 9114 | + | |
| 9115 | + | |
| 9116 | + | |
| 9117 | + | |
| 9118 | + | |
| 9119 | + | |
| 9120 | + | |
| 9121 | + | |
| 9122 | + | |
| 9123 | + | |
| 9124 | + | |
| 9125 | + | |
| 9126 | + | |
| 9127 | + | |
| 9128 | + | |
| 9129 | + | |
| 9130 | + | |
| 9131 | + | |
| 9132 | + | |
| 9133 | + | |
| 9134 | + | |
| 9135 | + | |
| 9136 | + | |
| 9137 | + | |
| 9138 | + | |
| 9139 | + | |
| 9140 | + | |
| 9141 | + | |
| 9142 | + | |
| 9143 | + | |
| 9144 | + | |
| 9145 | + | |
| 9146 | + | |
| 9147 | + | |
| 9148 | + | |
| 9149 | + | |
| 9150 | + | |
| 9151 | + | |
| 9152 | + | |
| 9153 | + | |
| 9154 | + | |
| 9155 | + | |
| 9156 | + | |
| 9157 | + | |
| 9158 | + | |
| 9159 | + | |
| 9160 | + | |
| 9161 | + | |
| 9162 | + | |
| 9163 | + | |
| 9164 | + | |
| 9165 | + | |
| 9166 | + | |
9112 | 9167 | | |
9113 | 9168 | | |
9114 | 9169 | | |
| |||
0 commit comments