File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
"author" : " Brandon Roberts" ,
19
19
"license" : " MIT" ,
20
20
"dependencies" : {
21
- "loader-utils" : " ^0.2.15 "
21
+ "loader-utils" : " ^1. 0.2"
22
22
},
23
23
"bugs" : {
24
24
"url" : " https://github.com/brandonroberts/angular-router-loader/issues"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module.exports = function(source, sourcemap) {
9
9
var loadChildrenRegex = / l o a d C h i l d r e n [ \s ] * : [ \s ] * [ ' | " ] ( .* ?) [ ' | " ] / gm;
10
10
11
11
// parse query params
12
- var query = loaderUtils . parseQuery ( this . query ) ;
12
+ var query = loaderUtils . getOptions ( this ) || { } ;
13
13
14
14
// get query options
15
15
var delimiter = query . delimiter || '#' ;
@@ -30,7 +30,7 @@ module.exports = function(source, sourcemap) {
30
30
// check for query string in loadString
31
31
var queryIndex = loadString . lastIndexOf ( '?' ) ;
32
32
var hasQuery = queryIndex !== - 1 ;
33
- var loadStringQuery = hasQuery ? loaderUtils . parseQuery ( loadString . substr ( queryIndex ) ) : { } ;
33
+ var loadStringQuery = hasQuery ? loaderUtils . getOptions ( loadString . substr ( queryIndex ) ) : { } ;
34
34
var sync = ! ! loadStringQuery . sync ;
35
35
var chunkName = loadStringQuery . chunkName || undefined ;
36
36
var isRelativePath = loadString . startsWith ( '.' ) ;
You can’t perform that action at this time.
0 commit comments