Skip to content

Fix detection when project contains stylesheets that import the "main" stylesheet #1218

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

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

thecrypticace
Copy link
Contributor

Fixes #1217

This issue kinda reveals that the entire detection around "project roots" or "root stylesheets" needs to be rethought because files at the top of a CSS graph may not actually be the intended stylesheet — especially when @reference is used. But… like anything… they also might be.

In the meantime we'll "prefer" files we can detect as definite root stylesheets before trying other files.

@thecrypticace thecrypticace marked this pull request as ready for review February 18, 2025 12:36
@thecrypticace thecrypticace changed the title Try “roots” first instead of discarding non-roots Fix detection when project contains stylesheets that import the "main" stylesheet Feb 18, 2025
@thecrypticace thecrypticace merged commit 07252bd into main Feb 18, 2025
@thecrypticace thecrypticace deleted the feat/fix-root-detection branch February 18, 2025 12:45
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.

v0.14.5 Fails with "no matching project for document" on standard nextjs/react project
2 participants