pub fn resolve_specifier_into_node_modules(
specifier: &Url,
canonicalize: &impl Fn(&Path) -> Result<PathBuf>,
) -> Url
Expand description
Resolves a specifier that is pointing into a node_modules folder.
Note: This should be called whenever getting the specifier from a Module::External(module) reference because that module might not be fully resolved at the time deno_graph is analyzing it because the node_modules folder might not exist at that time.