Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 10, 2022
1 parent 81f6fe7 commit 327e1da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/swc_ecma_minifier/src/compress/optimize/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ where

self.vars.inline_with_multi_replacer(init);

// We inline arrays if it's pure, and not modified.
// We inline arrays partially if it's pure (all elements are literal), and not
// modified.
// We don't drop definition, but we just inline array accesses with numeric
// literal key.
//
// TODO: Allow `length` in usage.accessed_props
if usage.declared
Expand Down

0 comments on commit 327e1da

Please sign in to comment.