tailwindcss/packages
Robin Malfait 3386049b7b
Fix upgrade error when using @import … source(…) (#17963)
This PR fixes an issue when running the upgrade tool and if any of the
CSS files has an import that looks like this:

```css
@import "tailwindcss" source("…");
```

This was trying to resolve `tailwindcss" source("…` instead of
`tailwindcss`.

This PR fixes that.

## Test plan

1. Ran it locally on a project

Before:

<img width="1158" alt="image"
src="https://github.com/user-attachments/assets/09bf5d69-797c-4330-ade1-edc213f7ce5c"
/>

After:

<img width="1029" alt="image"
src="https://github.com/user-attachments/assets/d1c9e194-30e2-4564-83c5-d9a259a67e90"
/>
2025-05-09 20:04:48 +00:00
..
@tailwindcss-browser Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-cli Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-node Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-postcss Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-standalone Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-upgrade Fix upgrade error when using @import … source(…) (#17963) 2025-05-09 20:04:48 +00:00
@tailwindcss-vite Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00