Skip to content

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.

Comment on lines +466 to +468
'input.css: 1:0-12 <- 1:0-21',
'input.css: 2:2-7 <- 1:0-21',
'input.css: 3:4-14 <- 1:0-21',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to port your intellisense visualizer here 😂

@thecrypticace thecrypticace force-pushed the feat/source-maps-for-add-base branch from 31738fb to 6df2592 Compare July 3, 2025 15:03
@thecrypticace thecrypticace merged commit 2941a7b into main Jul 3, 2025
7 checks passed
@thecrypticace thecrypticace deleted the feat/source-maps-for-add-base branch July 3, 2025 15:20
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

3 participants