Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for matching multiple utility definitions for one candidate #14231

Merged
merged 12 commits into from
Aug 22, 2024
Prev Previous commit
Next Next commit
Fix potential infinite recursion
  • Loading branch information
thecrypticace authored and philipp-spiess committed Aug 22, 2024
commit 55afb143d474936bc12ba62838e4e5762d7b828b
2 changes: 2 additions & 0 deletions packages/tailwindcss/src/candidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ function* findRoots(input: string, exists: (input: string) => boolean): Iterable
}
}

if (idx === -1) return

// Determine the root and value by testing permutations of the incoming input.
//
// In case of a candidate like `bg-red-500`, this looks like:
Expand Down