Sha256: 640743a7159a429ccae43607c1164e847af953343d76c5faa5e8be7e9a42f24f

Contents?: true

Size: 371 Bytes

Versions: 88

Compression:

Stored size: 371 Bytes

Contents

'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;

Version data entries

88 entries across 28 versions & 9 rubygems

Version Path
ilog-0.3.3 node_modules/loader-utils/lib/getRemainingRequest.js
jester-data-8.0.0 node_modules/loader-utils/lib/getRemainingRequest.js
ezii-os-5.2.1 node_modules/loader-utils/lib/getRemainingRequest.js
ezii-os-2.0.1 node_modules/loader-utils/lib/getRemainingRequest.js
ezii-os-1.1.0 node_modules/loader-utils/lib/getRemainingRequest.js
ezii-os-1.0.0 node_modules/loader-utils/lib/getRemainingRequest.js
ezii-os-0.0.0.1.0 node_modules/loader-utils/lib/getRemainingRequest.js
ezii-os-0.0.0.0.1 node_modules/loader-utils/lib/getRemainingRequest.js