@knighted/css 1.2.0-rc.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -393,13 +393,13 @@ function resolveRemainingRequest(ctx, remainingRequest) {
393
393
  const loaders = Array.isArray(ctx.loaders) ? ctx.loaders.slice(ctx.loaderIndex + 1) : [];
394
394
  if (loaders.length > 0) {
395
395
  const loaderRequests = loaders
396
- .map(loader => {
397
- if (loader && typeof loader.request === 'string' && loader.request) {
398
- return loader.request;
396
+ .map(loaderInfo => {
397
+ if (loaderInfo && typeof loaderInfo.request === 'string' && loaderInfo.request) {
398
+ return loaderInfo.request;
399
399
  }
400
- const path = loader && typeof loader.path === 'string' ? loader.path : '';
401
- const query = loader && typeof loader.query === 'string' ? loader.query : '';
402
- return path ? `${path}${query}` : '';
400
+ const loaderPath = loaderInfo && typeof loaderInfo.path === 'string' ? loaderInfo.path : '';
401
+ const query = loaderInfo && typeof loaderInfo.query === 'string' ? loaderInfo.query : '';
402
+ return loaderPath ? `${loaderPath}${query}` : '';
403
403
  })
404
404
  .filter(Boolean);
405
405
  if (loaderRequests.length > 0) {