This commit is contained in:
Gregory Schier
2023-03-31 22:42:26 -07:00
parent 9a8c208a15
commit 0ad5ebde47

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.