pub trait ImportResolver {
// Required method
fn resolve_import(
&self,
base: &FileName,
module_specifier: &str,
) -> Result<JsWord, Error>;
}
Required Methods§
sourcefn resolve_import(
&self,
base: &FileName,
module_specifier: &str,
) -> Result<JsWord, Error>
fn resolve_import( &self, base: &FileName, module_specifier: &str, ) -> Result<JsWord, Error>
Resolves target
as a string usable by the modules pass.
The returned string will be used as a module specifier.