File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
crates/oxc_minifier/src/peephole
tasks/track_memory_allocations Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,8 @@ impl<'a> Normalize {
180180 // checking whether any variables are exposed to outside (e.g. `export` in ESM)
181181 if decl. kind . is_const ( )
182182 && ctx. current_scope_id ( ) != ctx. scoping ( ) . root_scope_id ( )
183- && !ctx. current_scope_flags ( ) . contains_direct_eval ( ) // direct eval may have a assignment inside
183+ // direct eval may have a assignment inside
184+ && !ctx. current_scope_flags ( ) . contains_direct_eval ( )
184185 {
185186 let all_declarations_are_only_read =
186187 decl. declarations . iter ( ) . flat_map ( |d| d. id . get_binding_identifiers ( ) ) . all ( |id| {
Original file line number Diff line number Diff line change 11File | File size || Sys allocs | Sys reallocs || Arena allocs | Arena reallocs | Arena bytes
22------------------------------------------------------------------------------------------------------------------------------------------ -
3- checker .ts | 2.92 MB || 10157 | 21 || 268665 | 23341
3+ checker .ts | 2.92 MB || 10163 | 21 || 268665 | 23341
44
5- cal .com .tsx | 1.06 MB || 2197 | 54 || 138188 | 13712
5+ cal .com .tsx | 1.06 MB || 2205 | 61 || 138188 | 13712
66
77RadixUIAdoptionSection .jsx | 2.52 kB || 1 | 0 || 365 | 66
88
9- pdf .mjs | 567.30 kB || 683 | 71 || 90678 | 8148
9+ pdf .mjs | 567.30 kB || 701 | 75 || 90678 | 8148
1010
11- antd .js | 6.69 MB || 6938 | 236 || 528505 | 55357
11+ antd .js | 6.69 MB || 6995 | 235 || 528505 | 55357
1212
1313binder .ts | 193.08 kB || 537 | 7 || 16807 | 1475
1414
You can’t perform that action at this time.
0 commit comments