require.resolve.paths(request)
request<string> 要获取查找路径的模块路径。- 返回值: <string[]> | <null>
返回一个数组,包含在解析 request 期间搜索的路径,如果 request 字符串引用的是核心模块(例如 http 或 fs),则返回 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.】