RequireResolve
Functions
Link copied to clipboard
abstract operator fun invoke(request: String, options: RequireResolveOptions = definedExternally): String
Use the internal require() machinery to look up the location of a module, but rather than loading the module, just return the resolved filename.
Link copied to clipboard
Returns an array containing the paths searched during resolution of request or null if the request string references a core module, for example http or fs.