tailwindcss/packages/@tailwindcss-node/src
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
..
compile.ts Enable URL rewriting for PostCSS (#16965) 2025-03-07 12:18:10 +01:00
env.ts Expose timing information in debug mode (#14553) 2024-09-30 14:39:21 +00:00
esm-cache.loader.mts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
get-module-dependencies.ts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
index.cts Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
index.ts Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
instrumentation.test.ts Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00
instrumentation.ts Ensure Symbol.dispose and Symbol.asyncDispose are available (#15404) 2024-12-16 14:17:44 +01:00
normalize-path.ts Resolve @import in core (#14446) 2024-09-23 17:05:55 +02:00
require-cache.cts Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
urls.test.ts Vite: Don't rebase urls that appear to be aliases (#16078) 2025-01-31 15:23:32 +01:00
urls.ts Vite: Don't rebase urls that appear to be aliases (#16078) 2025-01-31 15:23:32 +01:00