tailwindcss/packages/@tailwindcss-upgrade/src/template
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 Upgrade: Do not extract class names from functions (#15566) 2025-01-07 15:31:48 +01:00
candidates.test.ts Re-introduce automatic var injection shorthand (#15020) 2024-11-18 15:47:48 +01:00
candidates.ts Re-introduce automatic var injection shorthand (#15020) 2024-11-18 15:47:48 +01:00
is-safe-migration.ts Upgrade: Do not extract class names from functions (#15566) 2025-01-07 15:31:48 +01:00
migrate.ts Disallow empty arbitrary values (#15055) 2024-11-21 13:47:13 +01:00
prepare-config.ts Improve robustness when upgrading (#15038) 2024-11-19 14:29:51 +01:00
splice-changes-into-string.ts Speed up template migrations (#14679) 2024-10-16 13:13:48 +02:00