@knighted/css 1.2.0-rc.2 → 1.2.0-rc.3
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.
- package/dist/cjs/css.cjs +2 -2
- package/dist/cjs/css.cjs.map +1 -1
- package/dist/cjs/loaderBridge.cjs +6 -6
- package/dist/cjs/loaderBridge.cjs.map +1 -1
- package/dist/cjs/plugin.cjs +5 -5
- package/dist/cjs/plugin.cjs.map +1 -1
- package/dist/css.js +2 -2
- package/dist/css.js.map +1 -1
- package/dist/loaderBridge.js +6 -6
- package/dist/loaderBridge.js.map +1 -1
- package/dist/plugin.js +5 -5
- package/dist/plugin.js.map +1 -1
- package/package.json +3 -3
|
@@ -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(
|
|
397
|
-
if (
|
|
398
|
-
return
|
|
396
|
+
.map(loaderInfo => {
|
|
397
|
+
if (loaderInfo && typeof loaderInfo.request === 'string' && loaderInfo.request) {
|
|
398
|
+
return loaderInfo.request;
|
|
399
399
|
}
|
|
400
|
-
const
|
|
401
|
-
const query =
|
|
402
|
-
return
|
|
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) {
|