Skip to content

Commit b79da9f

Browse files
authored
Fix handling of loaders as objects without a query prop
1 parent 2cf2e87 commit b79da9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ module.exports = ExtractTextPlugin;
130130

131131
// modified from webpack/lib/LoadersList.js
132132
function getLoaderWithQuery(loader) {
133-
if(isString(loader) || !loader.query) return loader;
133+
if(isString(loader)) return loader;
134+
if(!loader.query) return loader.loader;
134135
var query = isString(loader.query) ? loader.query : JSON.stringify(loader.query);
135136
return loader.loader + "?" + query;
136137
}

0 commit comments

Comments
 (0)