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
2828exports [ 'default' ] = function ( css ) {
2929 /* Find any local let rules and store them*/
3030 var translations = { } ;
31- css . eachAtRule ( / ^ d e f i n e $ / , function ( atRule ) {
31+ css . walkAtRules ( / ^ d e f i n e $ / , function ( atRule ) {
3232 var matches = undefined ;
3333 while ( matches = matchLet . exec ( atRule . params ) ) {
3434 var _matches = matches ;
@@ -39,7 +39,7 @@ exports['default'] = function (css) {
3939 var value = _matches2 [ 2 ] ;
4040
4141 translations [ key ] = value ;
42- atRule . removeSelf ( ) ;
42+ atRule . remove ( ) ;
4343 }
4444 } ) ;
4545
@@ -56,7 +56,7 @@ exports['default'] = function (css) {
5656
5757 /* Find imports and insert ICSS tmp vars */
5858 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 ) {
6060 var matches = matchImports . exec ( atRule . params ) ;
6161 if ( matches ) {
6262 var _matches3 = _slicedToArray ( matches , 3 ) ;
Original file line number Diff line number Diff line change 3333 "standard" : " ^5.3.1"
3434 },
3535 "dependencies" : {
36- "icss-replace-symbols" : " ^1.0.0 " ,
36+ "icss-replace-symbols" : " ^1.0.1 " ,
3737 "postcss" : " ^5.0.5"
3838 }
3939}
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ let createImportedName = options && options.createImportedName || ((importName/*
1111export default css => {
1212 /* Find any local let rules and store them*/
1313 let translations = { }
14- css . eachAtRule ( / ^ d e f i n e $ / , atRule => {
14+ css . walkAtRules ( / ^ d e f i n e $ / , atRule => {
1515 let matches
1616 while ( matches = matchLet . exec ( atRule . params ) ) {
1717 let [ /*match*/ , key , value ] = matches
1818 translations [ key ] = value
19- atRule . removeSelf ( )
19+ atRule . remove ( )
2020 }
2121 } )
2222
@@ -31,7 +31,7 @@ export default css => {
3131
3232 /* Find imports and insert ICSS tmp vars */
3333 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 => {
3535 let matches = matchImports . exec ( atRule . params )
3636 if ( matches ) {
3737 let [ /*match*/ , aliases , path ] = matches
You can’t perform that action at this time.
0 commit comments