From 4b7c6049ef9d40394eb823859c82cbf8d293430d Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 31 Jan 2024 22:15:22 -0500 Subject: refactor: load bytes in deno_graph (#22212) Upgrades deno_graph to 0.64 where deno_graph is now responsible for turning bytes into a string. This is in preparation for Wasm modules. --- cli/tools/check.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tools/check.rs') diff --git a/cli/tools/check.rs b/cli/tools/check.rs index 7ce9c578c..90a1d0299 100644 --- a/cli/tools/check.rs +++ b/cli/tools/check.rs @@ -243,7 +243,7 @@ fn get_check_hash( // this iterator of modules is already deterministic, so no need to sort it for module in graph.modules() { match module { - Module::Esm(module) => { + Module::Js(module) => { let ts_check = has_ts_check(module.media_type, &module.source); if ts_check { has_file_to_type_check = true; @@ -329,7 +329,7 @@ fn get_tsc_roots( check_js: bool, ) -> Option<(ModuleSpecifier, MediaType)> { match module { - Module::Esm(module) => match module.media_type { + Module::Js(module) => match module.media_type { MediaType::TypeScript | MediaType::Tsx | MediaType::Mts @@ -404,7 +404,7 @@ fn get_tsc_roots( if let Some(entry) = maybe_get_check_entry(module, check_js) { result.push(entry); } - if let Some(module) = module.esm() { + if let Some(module) = module.js() { let deps = module.dependencies_prefer_fast_check(); for dep in deps.values() { // walk both the code and type dependencies -- cgit v1.2.3