diff options
Diffstat (limited to 'cli/node/mod.rs')
-rw-r--r-- | cli/node/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/node/mod.rs b/cli/node/mod.rs index 4cbb1ef05..3df217722 100644 --- a/cli/node/mod.rs +++ b/cli/node/mod.rs @@ -73,7 +73,7 @@ impl NodeResolution { ) -> (ModuleSpecifier, MediaType) { match resolution { Some(NodeResolution::CommonJs(specifier)) => { - let media_type = MediaType::from(&specifier); + let media_type = MediaType::from_specifier(&specifier); ( specifier, match media_type { @@ -85,7 +85,7 @@ impl NodeResolution { ) } Some(NodeResolution::Esm(specifier)) => { - let media_type = MediaType::from(&specifier); + let media_type = MediaType::from_specifier(&specifier); ( specifier, match media_type { |