require.resolve.paths(request)


如果 request 字符串引用核心模块,例如 httpfs,则返回包含在解析 requestnull 期间搜索的路径的数组。

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.