Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 10, 2023
1 parent 591f850 commit de38415
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -633,14 +633,6 @@ impl TreeShaker {
} else if !self.in_block_stmt {
return false;
}

// Abort if the variable is declared on top level scope.
let ix = self.data.graph_ix.get_index_of(&name);
if let Some(ix) = ix {
if self.data.entries.contains(&(ix as u32)) {
return false;
}
}
}

if self.config.top_retain.contains(&name.0) {
Expand Down

0 comments on commit de38415

Please sign in to comment.