summaryrefslogtreecommitdiff
path: root/cli/tools/bundle.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-09 22:00:23 -0500
committerGitHub <noreply@github.com>2023-02-09 22:00:23 -0500
commitb3e88e0681248631b4bf8e4d9cd2e4d2c651f333 (patch)
treecd526bb63ef712e21aef24ff77703727791f48d5 /cli/tools/bundle.rs
parent8da235adced567839912344ba092fb445683485a (diff)
refactor: deno_graph 0.43 upgrade (#17692)
Diffstat (limited to 'cli/tools/bundle.rs')
-rw-r--r--cli/tools/bundle.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tools/bundle.rs b/cli/tools/bundle.rs
index 437bad1d4..86b28828b 100644
--- a/cli/tools/bundle.rs
+++ b/cli/tools/bundle.rs
@@ -38,7 +38,10 @@ pub async fn bundle(
let mut paths_to_watch: Vec<PathBuf> = graph
.specifiers()
- .filter_map(|(_, r)| r.ok().and_then(|(s, _, _)| s.to_file_path().ok()))
+ .filter_map(|(_, r)| {
+ r.ok()
+ .and_then(|module| module.specifier.to_file_path().ok())
+ })
.collect();
if let Ok(Some(import_map_path)) = ps