This repository was archived by the owner on Oct 9, 2020. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ var regexSequences = [
20
20
[ / \> \< / g, "><" ] // remove whitespace between tags
21
21
] ;
22
22
23
- function getExtractedSVG ( svgStr , query ) {
23
+ function getExtractedSVG ( svgStr , options ) {
24
24
var config ;
25
25
// interpolate hashes in classPrefix
26
- if ( ! ! query ) {
27
- config = assign ( { } , query ) ;
26
+ if ( ! ! options ) {
27
+ config = assign ( { } , options ) ;
28
28
29
29
if ( ! ! config . classPrefix ) {
30
30
const name = config . classPrefix === true ? '__[hash:base64:7]__' : config . classPrefix ;
@@ -60,9 +60,9 @@ function SVGInlineLoader(content) {
60
60
this . cacheable && this . cacheable ( ) ;
61
61
this . value = content ;
62
62
// Configuration
63
- var query = loaderUtils . parseQuery ( this . query ) ;
63
+ var options = loaderUtils . getOptions ( this ) ;
64
64
65
- return "module.exports = " + JSON . stringify ( getExtractedSVG ( content , query ) ) ;
65
+ return "module.exports = " + JSON . stringify ( getExtractedSVG ( content , options ) ) ;
66
66
}
67
67
68
68
SVGInlineLoader . getExtractedSVG = getExtractedSVG ;
Original file line number Diff line number Diff line change 10
10
"release" : " standard-version"
11
11
},
12
12
"dependencies" : {
13
- "loader-utils" : " ^0.2.11 " ,
13
+ "loader-utils" : " ^1.1.0 " ,
14
14
"object-assign" : " ^4.0.1" ,
15
15
"simple-html-tokenizer" : " ^0.1.1"
16
16
},
You can’t perform that action at this time.
0 commit comments