This repository was archived by the owner on Apr 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,15 @@ function applyImportant(matches) {
71
71
}
72
72
let result = [ ]
73
73
74
- for ( let [ { sort , layer , options } , rule ] of matches ) {
74
+ for ( let [ meta , rule ] of matches ) {
75
75
let container = postcss . root ( { nodes : [ rule ] } )
76
76
container . walkRules ( ( r ) => {
77
77
r . selector = updateAllClasses ( r . selector , ( className ) => {
78
78
return `!${ className } `
79
79
} )
80
80
r . walkDecls ( ( d ) => ( d . important = true ) )
81
81
} )
82
- let withOffset = [ { sort : sort , layer, options } , container . nodes [ 0 ] ]
83
- result . push ( withOffset )
82
+ result . push ( [ meta , container . nodes [ 0 ] ] )
84
83
}
85
84
86
85
return result
@@ -177,9 +176,8 @@ function* resolveMatchedPlugins(classCandidate, context) {
177
176
let candidatePrefix = classCandidate
178
177
let negative = false
179
178
180
- let twConfigPrefix = context . tailwindConfig . prefix || ''
181
- let twConfigPrefixLen = twConfigPrefix . length
182
-
179
+ const twConfigPrefix = context . tailwindConfig . prefix || ''
180
+ const twConfigPrefixLen = twConfigPrefix . length
183
181
if ( candidatePrefix [ twConfigPrefixLen ] === '-' ) {
184
182
negative = true
185
183
candidatePrefix = twConfigPrefix + candidatePrefix . slice ( twConfigPrefixLen + 1 )
You can’t perform that action at this time.
0 commit comments