File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ var createImportedName = options && options.createImportedName || function (impo
28
28
exports [ 'default' ] = function ( css ) {
29
29
/* Find any local let rules and store them*/
30
30
var translations = { } ;
31
- css . eachAtRule ( / ^ d e f i n e $ / , function ( atRule ) {
31
+ css . walkAtRules ( / ^ d e f i n e $ / , function ( atRule ) {
32
32
var matches = undefined ;
33
33
while ( matches = matchLet . exec ( atRule . params ) ) {
34
34
var _matches = matches ;
@@ -39,7 +39,7 @@ exports['default'] = function (css) {
39
39
var value = _matches2 [ 2 ] ;
40
40
41
41
translations [ key ] = value ;
42
- atRule . removeSelf ( ) ;
42
+ atRule . remove ( ) ;
43
43
}
44
44
} ) ;
45
45
@@ -56,7 +56,7 @@ exports['default'] = function (css) {
56
56
57
57
/* Find imports and insert ICSS tmp vars */
58
58
var importAliases = [ ] ;
59
- css . eachAtRule ( / ^ i m p o r t ( - d e f i n e ) ? $ / , function ( atRule ) {
59
+ css . walkAtRules ( / ^ i m p o r t ( - d e f i n e ) ? $ / , function ( atRule ) {
60
60
var matches = matchImports . exec ( atRule . params ) ;
61
61
if ( matches ) {
62
62
var _matches3 = _slicedToArray ( matches , 3 ) ;
Original file line number Diff line number Diff line change 33
33
"standard" : " ^5.3.1"
34
34
},
35
35
"dependencies" : {
36
- "icss-replace-symbols" : " ^1.0.0 " ,
36
+ "icss-replace-symbols" : " ^1.0.1 " ,
37
37
"postcss" : " ^5.0.5"
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ let createImportedName = options && options.createImportedName || ((importName/*
11
11
export default css => {
12
12
/* Find any local let rules and store them*/
13
13
let translations = { }
14
- css . eachAtRule ( / ^ d e f i n e $ / , atRule => {
14
+ css . walkAtRules ( / ^ d e f i n e $ / , atRule => {
15
15
let matches
16
16
while ( matches = matchLet . exec ( atRule . params ) ) {
17
17
let [ /*match*/ , key , value ] = matches
18
18
translations [ key ] = value
19
- atRule . removeSelf ( )
19
+ atRule . remove ( )
20
20
}
21
21
} )
22
22
@@ -31,7 +31,7 @@ export default css => {
31
31
32
32
/* Find imports and insert ICSS tmp vars */
33
33
let importAliases = [ ]
34
- css . eachAtRule ( / ^ i m p o r t ( - d e f i n e ) ? $ / , atRule => {
34
+ css . walkAtRules ( / ^ i m p o r t ( - d e f i n e ) ? $ / , atRule => {
35
35
let matches = matchImports . exec ( atRule . params )
36
36
if ( matches ) {
37
37
let [ /*match*/ , aliases , path ] = matches
You can’t perform that action at this time.
0 commit comments