Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Inline variable
  • Loading branch information
thecrypticace committed Sep 30, 2024
commit 02179441fc3472a0554936054fed47cf87464bcc
5 changes: 2 additions & 3 deletions packages/tailwindcss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,8 @@ export async function compile(
}

// Track all invalid candidates
let invalidCandidates = designSystem.invalidCandidates
function onInvalidCandidate(candidate: string) {
invalidCandidates.add(candidate)
designSystem.invalidCandidates.add(candidate)
}

// Track all valid candidates, these are the incoming `rawCandidate` that
Expand All @@ -419,7 +418,7 @@ export async function compile(
// Add all new candidates unless we know that they are invalid.
let prevSize = allValidCandidates.size
for (let candidate of newRawCandidates) {
if (!invalidCandidates.has(candidate)) {
if (!designSystem.invalidCandidates.has(candidate)) {
allValidCandidates.add(candidate)
didChange ||= allValidCandidates.size !== prevSize
}
Expand Down