summaryrefslogtreecommitdiff
path: root/cli/graph_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r--cli/graph_util.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs
index 6214a1628..f3b69b243 100644
--- a/cli/graph_util.rs
+++ b/cli/graph_util.rs
@@ -110,13 +110,23 @@ pub fn graph_valid(
}
}
+ if graph.graph_kind() == GraphKind::TypesOnly
+ && matches!(
+ error,
+ ModuleGraphError::ModuleError(ModuleError::UnsupportedMediaType(..))
+ )
+ {
+ log::debug!("Ignoring: {}", message);
+ return None;
+ }
+
if options.is_vendoring {
// warn about failing dynamic imports when vendoring, but don't fail completely
if matches!(
error,
ModuleGraphError::ModuleError(ModuleError::MissingDynamic(_, _))
) {
- log::warn!("Ignoring: {:#}", message);
+ log::warn!("Ignoring: {}", message);
return None;
}