File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ module.exports = function(content) {
21
21
annotateUrls ( tree ) ;
22
22
23
23
imports . forEach ( function ( imp ) {
24
- if ( / ^ d a t a : | ^ ( h t t p s ? : ) ? \/ \/ / . test ( imp . url ) ) {
24
+ if ( ! loaderUtils . isUrlRequest ( imp . url ) ) {
25
25
result . push ( JSON . stringify ( "@import url(" + imp . url + ")" + imp . media . join ( "" ) + ";" ) ) ;
26
26
} else {
27
27
if ( imp . media . length > 0 ) {
28
28
result . push ( JSON . stringify ( "@media " + imp . media . join ( "" ) + "{" ) ) ;
29
29
}
30
- result . push ( "require(" + JSON . stringify ( "!" + __filename + "!" + urlToRequire ( imp . url ) ) + ")" ) ;
30
+ result . push ( "require(" + JSON . stringify ( "!" + __filename + "!" + loaderUtils . urlToRequest ( imp . url ) ) + ")" ) ;
31
31
if ( imp . media . length > 0 ) {
32
32
result . push ( JSON . stringify ( "}" ) ) ;
33
33
}
You can’t perform that action at this time.
0 commit comments