mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(cli): Don't statically error on dynamic unmapped bare specifiers (#10618)
Fixes #10168 Fixes #10615 Fixes #10616
This commit is contained in:
parent
83ce333633
commit
3a33510bd4
12 changed files with 66 additions and 55 deletions
|
@ -83,10 +83,9 @@ impl ModuleLoader for CliModuleLoader {
|
|||
|
||||
if !is_main {
|
||||
if let Some(import_map) = &self.import_map {
|
||||
let result = import_map.resolve(specifier, referrer)?;
|
||||
if let Some(r) = result {
|
||||
return Ok(r);
|
||||
}
|
||||
return import_map
|
||||
.resolve(specifier, referrer)
|
||||
.map_err(AnyError::from);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue