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.