Skip to main content

resolve_paths

Function resolve_paths 

Source
pub fn resolve_paths(spec: &str, from_dir: &Path) -> Vec<String>
Expand description

The directories require.resolve would search for spec, in order.

A RELATIVE specifier resolves against one directory — the requiring one — so node reports just that. A bare package name walks the node_modules chain up to the root.