Skip to main content

resolve

Function resolve 

Source
pub fn resolve(base_dir: &Path, specifier: &str) -> Result<PathBuf, String>
Expand description

Resolve specifier as written in a file inside base_dir.

§Errors

Returns an error naming the specifier when nothing resolves, the way Node’s MODULE_NOT_FOUND does.