tailwindcss/integrations
Robin Malfait 81a676f129
Fix race condition in Next.js with --turbopack (#17514)
This PR fixes an issue where if you use Next.js with `--turbopack` a
race condition happens because the `@tailwindcss/postcss` plugin is
called twice in rapid succession.

The first call sees an update and does a partial update with the new
classes. Next some internal `mtimes` are updated. The second call
therefore doesn't see any changes anymore because the `mtimes` are the
same, therefore it's serving its stale data.

Fixes: #17508

## Test plan

- Tested with the repro provided in #17508
- Added a new unit test that calls into the PostCSS plugin directly for
the same change from the same JavaScript run-loop.

---------

Co-authored-by: Philipp Spiess <hello@philippspiess.com>
2025-04-03 17:07:38 +02:00
..
cli Replace currentColor with currentcolor (lowercase) (#17510) 2025-04-03 16:09:12 +02:00
postcss Use @layer properties for @property polyfills (#17506) 2025-04-02 18:16:28 +02:00
upgrade Replace currentColor with currentcolor (lowercase) (#17510) 2025-04-03 16:09:12 +02:00
vite Improve compatibility with Safari 15 (#17435) 2025-04-01 13:33:22 +02:00
webpack Improve compatibility with Safari 15 (#17435) 2025-04-01 13:33:22 +02:00
workers Fix segmentation fault when loading @tailwindcss/oxide in a Worker thread (#17276) 2025-03-18 16:28:20 -04:00
package.json Update fast-glob 3.3.2 → 3.3.3 (patch) (#15607) 2025-01-13 11:11:35 +01:00
utils.ts Fix race condition in Next.js with --turbopack (#17514) 2025-04-03 17:07:38 +02:00
vitest.config.ts Improve integration tests (stability + performance) (#15125) 2024-12-12 13:48:56 +01:00