Skip to content

Commit

Permalink
change fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Dec 20, 2024
1 parent 559730f commit 304a4ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,15 @@ impl<'a> DocParser<'a> {
let module_info = self.get_module_info(module.specifier())?;
let exports = module_info.exports(&self.root_symbol);
if name_path.is_empty() {
return Ok(None);
return Ok(Some(vec![]));
}
let root_name = name_path.remove(0);
let Some((mut export_name, export)) = exports
.resolved
.iter()
.find(|(name, _)| &&root_name == name)
else {
return Ok(None);
return Ok(Some(vec![]));
};

let export = export.as_resolved_export();
Expand Down

0 comments on commit 304a4ae

Please sign in to comment.