diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-10-28 21:53:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 21:53:55 +0200 |
commit | 2c674dcd20aeb19d694e03d969f5792d1581e87a (patch) | |
tree | 5cc7212935bb1a46bc0f5c3920a823c3f0f7f73b /cli/main.rs | |
parent | e202f890f04e37b40b311729c2a1e2a89949af2c (diff) |
refactor(npm): reorganize initialization of compat layer (#16471)
Ensures that "std/node" graph is analyzed only once.
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/cli/main.rs b/cli/main.rs index af0b532c0..9444ac2bf 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -292,17 +292,6 @@ async fn load_and_type_check( for file in files { let specifier = resolve_url_or_path(file)?; - // TODO(bartlomieju): in the future (after all relevant deno subcommands - // have support for npm: specifiers), it would be good to unify this code - // in `ProcState::prepare_module_load`. - if let Ok(package_ref) = NpmPackageReference::from_specifier(&specifier) { - ps.npm_resolver - .add_package_reqs(vec![package_ref.req.clone()]) - .await?; - ps.prepare_node_std_graph().await?; - continue; - } - ps.prepare_module_load( vec![specifier], false, |