From 1e75e5ecc72fd6caf1ee3d2c98ea1662e141f55b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 3 Feb 2023 23:00:50 -0500 Subject: refactor: remove old cjs_esm_translations in graph_util (#17643) This isn't used. --- cli/module_loader.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'cli/module_loader.rs') diff --git a/cli/module_loader.rs b/cli/module_loader.rs index c7872988b..d2e103ec8 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -96,14 +96,7 @@ impl CliModuleLoader { | MediaType::Unknown | MediaType::Cjs | MediaType::Mjs - | MediaType::Json => { - if let Some(source) = graph_data.get_cjs_esm_translation(specifier) - { - source.to_owned() - } else { - code.to_string() - } - } + | MediaType::Json => code.to_string(), MediaType::Dts | MediaType::Dcts | MediaType::Dmts => "".to_string(), MediaType::TypeScript | MediaType::Mts -- cgit v1.2.3