summaryrefslogtreecommitdiff
path: root/runtime/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/build.rs')
-rw-r--r--runtime/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/build.rs b/runtime/build.rs
index 346dbe439..016ece810 100644
--- a/runtime/build.rs
+++ b/runtime/build.rs
@@ -22,7 +22,7 @@ mod startup_snapshot {
fn transpile_ts_for_snapshotting(
file_source: &ExtensionFileSource,
) -> Result<String, AnyError> {
- let media_type = MediaType::from(Path::new(&file_source.specifier));
+ let media_type = MediaType::from_path(Path::new(&file_source.specifier));
let should_transpile = match media_type {
MediaType::JavaScript => false,