tailwindcss/packages
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
..
@tailwindcss-browser Prepare release v4.1.1 (#17503) 2025-04-02 09:27:58 +00:00
@tailwindcss-cli Prepare release v4.1.1 (#17503) 2025-04-02 09:27:58 +00:00
@tailwindcss-node Prepare release v4.1.1 (#17503) 2025-04-02 09:27:58 +00:00
@tailwindcss-postcss Fix race condition in Next.js with --turbopack (#17514) 2025-04-03 17:07:38 +02:00
@tailwindcss-standalone Update @types/bun 1.2.4 → 1.2.8 (patch) (#17528) 2025-04-03 16:05:41 +02:00
@tailwindcss-upgrade Replace currentColor with currentcolor (lowercase) (#17510) 2025-04-03 16:09:12 +02:00
@tailwindcss-vite Prepare release v4.1.1 (#17503) 2025-04-02 09:27:58 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Fix drop shadow filters with multiple shadows (#17515) 2025-04-03 14:37:56 +00:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00