Skip to main content

resolve_module

Function resolve_module 

Source
pub fn resolve_module<'m>(
    spec: &str,
    from_file: &str,
    modules: &'m IndexMap<String, IndexMap<String, JsValue>>,
) -> Option<&'m IndexMap<String, JsValue>>
Expand description

The exports of require(spec) from the project-relative file from_file, if known.