This commit is contained in:
Gregory Schier
2023-03-31 22:42:26 -07:00
parent 5704fb560a
commit 63c1111608

View File

@@ -90,7 +90,7 @@ impl deno_core::ModuleLoader for TsModuleLoader {
| MediaType::Dcts
| MediaType::Tsx => (ModuleType::JavaScript, true),
MediaType::Json => (ModuleType::Json, false),
_ => panic!("Unknown extension {:?}", path),
_ => panic!("Unknown extension {:?}", path.extension()),
};
// Read the file, transpile if necessary.