tailwindcss/integrations
Philipp Spiess 3f2afaf3d0
Upgrade: Improve heuristics around important codemod (#14774)
This PR improves the heuristics around the important codemod (e.g.
`!border` => `border!`) as we noticed a few more cases where we the
current heuristics was not enough.

Specifically, we made it not migrate the candidate in the following
conditions:

- When there's an immediate property access: `{ "foo": !border.something
+ ""}`
- When it's used as condition in the template language: `<div
v-if="something && !border"></div>` or `<div x-if="!border"></div>`

## Test plan

I added test cases to the unit tests and updated the integration test to
contain a more sophisticated example.

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2024-10-24 11:31:12 -04:00
..
cli Always emit keyframes registered in addUtilities (#14747) 2024-10-22 16:34:38 +00:00
postcss Improve @tailwindcss/postcss performance for initial builds (#14565) 2024-10-03 16:21:54 +02:00
upgrade Upgrade: Improve heuristics around important codemod (#14774) 2024-10-24 11:31:12 -04:00
vite Fix Astro integration test by pinning zod-to-json-schema (#14780) 2024-10-24 15:18:57 +00:00
package.json Add integration test setup and tests for the Vite integration (#14089) 2024-08-02 11:50:49 +02:00
utils.ts Register migrateImport to ensure it actually runs (#14769) 2024-10-24 11:00:25 -04:00