Skip to content

Track source locations through @plugin and @config #18329

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented Jun 17, 2025

Fixes tailwindlabs/tailwindcss-forms#182

Inside JS plugins and configs we weren't tracking source location info so using things like addBase(…) could result in warnings inside Vite's url rewriting PostCSS plugin because not all declarations had a source location.

The goal here is for calls to addBase to generate CSS that points back to the @plugin or @config that resulted in it being called.

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.

A PostCSS plugin did not pass the from option to postcss.parse
1 participant