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
optimacms-0.1.61 spec/dummy/node_modules/resolve-url-loader/node_modules/loader-utils/lib/getRemainingRequest.js
optimacms-0.1.61 spec/dummy/node_modules/adjust-sourcemap-loader/node_modules/loader-utils/lib/getRemainingRequest.js
optimacms-0.1.61 spec/dummy/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
optimacms-0.1.61 spec/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
optimacms-0.1.61 spec/dummy/node_modules/css-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.18.0 test/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.18.2 test/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.16.1 test/dummy/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.16.1 test/dummy/node_modules/webpack-cli/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.16.1 test/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.16.1 test/dummy/node_modules/babel-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.16.1 test/dummy/node_modules/sass-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.16.1 test/dummy/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.15.2 test/dummy/node_modules/babel-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.15.2 test/dummy/node_modules/webpack-cli/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.15.2 test/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.15.2 test/dummy/node_modules/sass-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.15.2 test/dummy/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.15.2 test/dummy/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js