Skip to content

Commit 8616eae

Browse files
authoredMar 1, 2017
fix(loader): Fixed bug when using query string with loadChildren (#62)
Bug introduced with latest version of loader-utils lib that expects loaderContext to be an object with a query property
1 parent 979ae85 commit 8616eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function(source, sourcemap) {
3030
// check for query string in loadString
3131
var queryIndex = loadString.lastIndexOf('?');
3232
var hasQuery = queryIndex !== -1;
33-
var loadStringQuery = hasQuery ? loaderUtils.getOptions(loadString.substr(queryIndex)) : {};
33+
var loadStringQuery = hasQuery ? loaderUtils.getOptions({ query: loadString.substr(queryIndex) }) : {};
3434
var sync = !!loadStringQuery.sync;
3535
var chunkName = loadStringQuery.chunkName || undefined;
3636
var isRelativePath = loadString.startsWith('.');

0 commit comments

Comments
 (0)