Skip to content

Commit 2a07edd

Browse files
authored
fix: fill graph with lockfile specifiers (#47)
1 parent db34d0a commit 2a07edd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/rs_lib/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,11 @@ impl DenoLoader {
484484
parser: &DefaultEsParser,
485485
};
486486
let mut graph = self.graph.deep_clone();
487+
if graph.roots.is_empty() {
488+
if let Some(lockfile) = lockfile {
489+
lockfile.fill_graph(&mut graph);
490+
}
491+
}
487492
graph
488493
.build(
489494
entrypoints,

0 commit comments

Comments
 (0)