invoke
abstract operator fun invoke(request: String, options: RequireResolveOptions = definedExternally): String(source)
Use the internal require()
machinery to look up the location of a module, but rather than loading the module, just return the resolved filename.
If the module can not be found, a MODULE_NOT_FOUND
error is thrown.
Since
v0.3.0
Parameters
request
The module path to resolve.