tailwindcss/packages
Philipp Spiess 225f3233b6
Enable URL rewriting for PostCSS (#16965)
Fixes #16636 

This PR enables URL rebasing for PostCSS. Furthermore it fixes an issue
where transitive imports rebased against the importer CSS file instead
of the input CSS file. While fixing this we noticed that this is also
broken in Vite right now and that our integration test swallowed that
when testing because it did not import any Tailwind CSS code and thus
was not considered a Tailwind file.

## Test plan

- Added regression integration tests
- Also validated it against the repro of
https://github.com/tailwindlabs/tailwindcss/issues/16962:
  
<img width="1149" alt="Screenshot 2025-03-05 at 16 41 01"
src="https://github.com/user-attachments/assets/85396659-d3d0-48c0-b1c7-6125ff8e73ac"
/>

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2025-03-07 12:18:10 +01:00
..
@tailwindcss-browser Update h3 1.15.0 → 1.15.1 (patch) (#17010) 2025-03-07 12:00:44 +01:00
@tailwindcss-cli Prepare v4.0.11 release (#16987) 2025-03-06 11:09:39 +00:00
@tailwindcss-node Enable URL rewriting for PostCSS (#16965) 2025-03-07 12:18:10 +01:00
@tailwindcss-postcss Enable URL rewriting for PostCSS (#16965) 2025-03-07 12:18:10 +01:00
@tailwindcss-standalone Prepare v4.0.11 release (#16987) 2025-03-06 11:09:39 +00:00
@tailwindcss-upgrade Prepare v4.0.11 release (#16987) 2025-03-06 11:09:39 +00:00
@tailwindcss-vite Prepare v4.0.11 release (#16987) 2025-03-06 11:09:39 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Fix sorting of classes that have undefined declarations (#16995) 2025-03-06 15:20:12 +01:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00