tailwindcss/packages
Hiroshi Ogawa bf441a799f
fix(vite): skip full reload for server only modules scanned by client css (#19745)
<!--

👋 Hey, thanks for your interest in contributing to Tailwind!

**Please ask first before starting work on any significant new
features.**

It's never a fun experience to have your pull request declined after
investing a lot of time and effort into a new feature. To avoid this
from happening, we request that contributors create a discussion to
first discuss any significant new features.

For more info, check out the contributing guide:


https://github.com/tailwindlabs/tailwindcss/blob/main/.github/CONTRIBUTING.md

-->

## Summary

- Closes https://github.com/tailwindlabs/tailwindcss/issues/19744
- Closes https://github.com/vitejs/vite-plugin-react/issues/1118
- Closes https://github.com/wakujs/waku/issues/1963

The change in https://github.com/tailwindlabs/tailwindcss/pull/19670
didn't take account for server only modules managed by SSR framework.
Forcing full reload for this path breaks server HMR. This PR added a
check to determine whether the same modified file has associated modules
in a different environment module graph to avoid this.

## Test plan

<!--

Explain how you tested your changes. Include the exact commands that you
used to verify the change works and include screenshots/screen
recordings of the update behavior in the browser if applicable.

-->

Added an integration test for React router HDR (server loader hmr). This
test fails on main.

Also the local build is tested on `@vitejs/plugin-rsc` CI and confirmed
the fix https://github.com/vitejs/vite-plugin-react/pull/1132

---------

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
2026-03-12 18:49:41 +00:00
..
@tailwindcss-browser 4.2.1 (#19714) 2026-02-23 11:45:12 +01:00
@tailwindcss-cli drop unnecessary test 2026-03-11 20:35:35 +01:00
@tailwindcss-node Fix internal source map warnings (#19788) 2026-03-12 12:21:00 +01:00
@tailwindcss-postcss 4.2.1 (#19714) 2026-02-23 11:45:12 +01:00
@tailwindcss-standalone 4.2.1 (#19714) 2026-02-23 11:45:12 +01:00
@tailwindcss-upgrade 4.2.1 (#19714) 2026-02-23 11:45:12 +01:00
@tailwindcss-vite fix(vite): skip full reload for server only modules scanned by client css (#19745) 2026-03-12 18:49:41 +00:00
@tailwindcss-webpack 4.2.1 (#19714) 2026-02-23 11:45:12 +01:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss run prettier 2026-03-11 19:59:38 +01:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00