summaryrefslogtreecommitdiff
path: root/cli/tsc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r--cli/tsc.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs
index 535447c54..5b6d00310 100644
--- a/cli/tsc.rs
+++ b/cli/tsc.rs
@@ -383,7 +383,10 @@ fn resolve(state: &mut State, args: Value) -> Result<Value, AnyError> {
} else {
resolved_specifier.to_string()
};
- resolved.push((resolved_specifier_str, media_type.as_ts_extension()));
+ resolved.push((
+ resolved_specifier_str,
+ media_type.as_ts_extension().into(),
+ ));
}
// in certain situations, like certain dynamic imports, we won't have
// the source file in the graph, so we will return a fake module to