Skip to content

Commit 3aca833

Browse files
committed
TS: Dynamic imports
1 parent f71f180 commit 3aca833

File tree

1 file changed

+0
-10
lines changed
  • turbopack/crates/turbopack-ecmascript/src/tree_shake

1 file changed

+0
-10
lines changed

turbopack/crates/turbopack-ecmascript/src/tree_shake/util.rs

-10
Original file line numberDiff line numberDiff line change
@@ -504,16 +504,6 @@ impl Visit for ShouldSkip {
504504
n.visit_children_with(self);
505505
}
506506

507-
fn visit_callee(&mut self, n: &Callee) {
508-
// TOOD(PACK-3231): Tree shaking work with dynamic imports
509-
if matches!(n, Callee::Import(..)) {
510-
self.skip = true;
511-
return;
512-
}
513-
514-
n.visit_children_with(self);
515-
}
516-
517507
fn visit_expr(&mut self, n: &Expr) {
518508
if self.skip {
519509
return;

0 commit comments

Comments
 (0)