Skip to content

Commit

Permalink
Comemnt
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 10, 2022
1 parent 52d5ed8 commit 81f6fe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/swc_ecma_minifier/src/compress/optimize/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ where

self.vars.inline_with_multi_replacer(init);

// We inline arrays if it's pure, and not modified.
//
// TODO: Allow `length` in usage.accessed_props
if usage.declared
&& !usage.reassigned()
Expand Down

0 comments on commit 81f6fe7

Please sign in to comment.