Skip to main content

require_module

Function require_module 

Source
pub fn require_module(path: &Path, parent: &str) -> Result<Value, String>
Expand description

require() of an ES module file (node’s require(esm)): its namespace, or the value it exports under the name "module.exports".