Skip to content

Commit 6488984

Browse files
committed
improve variable name
1 parent 8ba5c78 commit 6488984

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/tailwindcss/src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function compile(css: string): {
2222

2323
// Track `@apply` information
2424
let containsAtApply = css.includes('@apply')
25-
let applyables = new Map<string, AstNode[]>()
25+
let userDefinedApplyables = new Map<string, AstNode[]>()
2626

2727
// Find all `@theme` declarations
2828
let theme = new Theme()
@@ -39,7 +39,7 @@ export function compile(css: string): {
3939

4040
// It could be that multiple definitions exist for the same class, so we
4141
// need to track all of them.
42-
let nodes = applyables.get(candidate) ?? []
42+
let nodes = userDefinedApplyables.get(candidate) ?? []
4343

4444
// Add all children of the current rule to the list of nodes for the
4545
// current candidate.
@@ -48,7 +48,7 @@ export function compile(css: string): {
4848
}
4949

5050
// Store the list of nodes for the current candidate
51-
applyables.set(candidate, nodes)
51+
userDefinedApplyables.set(candidate, nodes)
5252
}
5353

5454
// Drop instances of `@media reference`
@@ -181,7 +181,7 @@ export function compile(css: string): {
181181
// Collect all user-defined classes for the current candidates that we
182182
// need to apply.
183183
for (let candidate of candidates) {
184-
let nodes = applyables.get(candidate)
184+
let nodes = userDefinedApplyables.get(candidate)
185185
if (!nodes) continue
186186

187187
for (let child of nodes) {
@@ -209,7 +209,7 @@ export function compile(css: string): {
209209
//
210210
// When the user then uses `@apply flex`, we want to both apply
211211
// the user-defined class and the utility class.
212-
if (applyables.has(candidate)) return
212+
if (userDefinedApplyables.has(candidate)) return
213213

214214
throw new Error(`Cannot apply unknown utility class: ${candidate}`)
215215
},

0 commit comments

Comments
 (0)