require.resolve.paths(request)
request
<string> 正在检索其查找路径的模块路径。- 返回: <string[]> | <null>
如果 request
字符串引用核心模块,例如 http
或 fs
,则返回包含在解析 request
或 null
期间搜索的路径的数组。
request
<string> The module path whose lookup paths are being retrieved.- Returns: <string[]> | <null>
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
.