require.resolve.paths(request)


返回一个数组,包含在解析 request 期间搜索的路径,如果 request 字符串引用的是核心模块(例如 httpfs),则返回 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.】