Frontend/25_01_07/mai/node_modules/loader-utils/lib/getRemainingRequest.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

17 lines
371 B
JavaScript

'use strict';
function getRemainingRequest(loaderContext) {
if (loaderContext.remainingRequest) {
return loaderContext.remainingRequest;
}
const request = loaderContext.loaders
.slice(loaderContext.loaderIndex + 1)
.map((obj) => obj.request)
.concat([loaderContext.resource]);
return request.join('!');
}
module.exports = getRemainingRequest;