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
disco_app-0.14.0 test/dummy/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.14.0 test/dummy/node_modules/sass-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.14.0 test/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.14.0 test/dummy/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/webpack-cli/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/babel-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/sass-loader/node_modules/loader-utils/lib/getRemainingRequest.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.2.1 spec/tang_app/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.2.1 spec/tang_app/node_modules/loader-utils/lib/getRemainingRequest.js
tang-0.2.1 spec/tang_app/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/loader-utils/lib/getRemainingRequest.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/style-loader/node_modules/loader-utils/lib/getRemainingRequest.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/loader-utils/lib/getRemainingRequest.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/file-loader/node_modules/loader-utils/lib/getRemainingRequest.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/@ruby2js/webpack-loader/node_modules/loader-utils/lib/getRemainingRequest.js