Skip to content

Commit

Permalink
Remove wrong check for __turbopack_refresh__
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 4, 2024
1 parent 5d42735 commit 20b694d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions turbopack/crates/turbopack-ecmascript/src/tree_shake/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,13 +519,6 @@ impl Visit for ShouldSkip {
return;
}

// This is needed to pass some tests even if we enable tree shaking only for production
// builds.
if n.is_ident_ref_to("__turbopack_refresh__") {
self.skip = true;
return;
}

n.visit_children_with(self);
}

Expand Down

0 comments on commit 20b694d

Please sign in to comment.