tailwindcss/packages/@tailwindcss-upgrade/src
Philipp Spiess d4f693f7f3
Upgrade: Do not extract class names from functions (#15566)
This PR prevents the migration of utilities detected in function names,
e.g.: the use of `shadow` inside `filter: 'drop-shadow(…)'`.

## Test plan

Have content like this in a project you're migrating using the upgrade
tool:

```js
{
  filter: 'drop-shadow(0 0 0.5rem #000)'
}
```

This was verified by adding unit tests to the specific codemods and
adding an integration test.
2025-01-07 15:31:48 +01:00
..
codemods Always add layer(…) as the first param to @import (#15102) 2024-11-22 14:09:26 +00:00
commands/help Add initial codemod tooling (#14434) 2024-09-18 16:45:43 +02:00
template Upgrade: Do not extract class names from functions (#15566) 2025-01-07 15:31:48 +01:00
utils Improve performance of @tailwindcss/postcss and @tailwindcss/vite (#15226) 2024-11-29 10:59:29 -05:00
index.test.ts Revert new default form styles (#15100) 2024-11-22 08:55:05 -05:00
index.ts Upgrade: Error when project is already using Tailwind CSS v4 (#15015) 2024-11-19 15:53:02 +01:00
migrate-js-config.ts Convert opacity keys to percentage values (#15067) 2024-11-21 19:06:58 +01:00
migrate-postcss.ts Improve PostCSS migration (#15046) 2024-11-19 22:56:29 +01:00
migrate-prettier.ts Improve robustness when upgrading (#15038) 2024-11-19 14:29:51 +01:00
migrate.ts Add color to form reset snippet (#15064) 2024-11-21 16:14:52 +01:00
stylesheet.ts Resolve imports from CSS file (#15010) 2024-11-15 22:06:52 +01:00