@@ -77,17 +77,13 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
7777			exports [ exportName ]  =  replaceImportsInString ( exports [ exportName ] ) ; 
7878		} ) ; 
7979
80- 		function  processNode ( item ,   isValue )  { 
80+ 		function  processNode ( item )  { 
8181			switch  ( item . type )  { 
8282				case  "value" :
83- 					item . nodes . forEach ( function ( node ) { 
84- 						processNode ( node ,  true ) ; 
85- 					} ) ; 
83+ 					item . nodes . forEach ( processNode ) ; 
8684					break ; 
8785				case  "nested-item" :
88- 					item . nodes . forEach ( function ( node ) { 
89- 						processNode ( node ) ; 
90- 					} ) ; 
86+ 					item . nodes . forEach ( processNode ) ; 
9187					break ; 
9288				case  "item" :
9389					var  importIndex  =  imports [ "$"  +  item . name ] ; 
@@ -100,18 +96,7 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
10096						item . stringType  =  "" ; 
10197						delete  item . innerSpacingBefore ; 
10298						delete  item . innerSpacingAfter ; 
103- 						var  url ; 
104- 
105- 						if ( isValue )  { 
106- 							if ( loaderUtils . isUrlRequest ( url ,  options . root )  &&  options . mode  ===  "global" )  { 
107- 								url  =  loaderUtils . urlToRequest ( item . url ,  options . root ) ; 
108- 							}  else  { 
109- 								url  =  item . url ; 
110- 							} 
111- 						}  else  { 
112- 							url  =  item . url ; 
113- 						} 
114- 
99+ 						var  url  =  item . url ; 
115100						item . url  =  "___CSS_LOADER_URL___"  +  urlItems . length  +  "___" ; 
116101						urlItems . push ( { 
117102							url : url 
@@ -124,9 +109,7 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) {
124109		css . walkDecls ( function ( decl )  { 
125110			var  values  =  Tokenizer . parseValues ( decl . value ) ; 
126111			values . nodes . forEach ( function ( value )  { 
127- 				value . nodes . forEach ( function ( node ) { 
128- 					processNode ( node ) ; 
129- 				} ) ; 
112+ 				value . nodes . forEach ( processNode ) ; 
130113			} ) ; 
131114			decl . value  =  Tokenizer . stringifyValues ( values ) ; 
132115		} ) ; 
0 commit comments