Skip to content

Commit 2d80f1a

Browse files
authored
Turbopack: JsAnalyzer parse AssignExpr (#83962)
1 parent ffa66ff commit 2d80f1a

File tree

9 files changed

+11012
-10582
lines changed

9 files changed

+11012
-10582
lines changed

turbopack/crates/turbopack-ecmascript/src/analyzer/graph.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ impl EvalContext {
737737
..
738738
}) => JsValue::WellKnownObject(WellKnownObjectKind::ImportMeta),
739739

740+
Expr::Assign(AssignExpr { right, .. }) => self.eval(right),
741+
740742
_ => JsValue::unknown_empty(true, "unsupported expression"),
741743
}
742744
}

0 commit comments

Comments
 (0)