Skip to content

Conversation

@thecrypticace
Copy link
Contributor

When a prefix is set in a stylesheet and we found a candidate that is equal to the prefix we would crash:

@import "tailwindcss" prefix(tomato);
console.log("tomato")

This PR fixes this case by ensuring that we have something that looks like a variant before considering a prefix.

@thecrypticace thecrypticace merged commit 60b0e9c into next Oct 4, 2024
1 check passed
@thecrypticace thecrypticace deleted the fix/prefix-raw-candidate-crash branch October 4, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants