TailwindCSS: Smarter Hot Reloads in Vite
A single fix to the Vite plugin narrows an overly broad full-page-reload trigger, so editing unloaded JS or TypeScript files won't unnecessarily reset your dev session. The change targets a false positive in how Tailwind's dev server decides between a fast update and a full reload.
Duration: PT2M4S
Episode overview
This episode is a short developer briefing from TailwindCSS.
It explains recent repository work in plain language.
- Show: TailwindCSS
- Published: 2026-07-12T13:03:59Z
- Audio duration: PT2M4S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
It's July 12th, 2026, and today's Tailwind update is small in scope but meaningful for anyone running a dev server.
The headline: a fix to how the Tailwind Vite plugin decides when to fully reload your page versus applying a quick update.
Here's the background. In dev mode, the plugin's hot update hook has a fallback rule: if it can't find a proper module for a file Tailwind is scanning, it sends a full-page reload. That makes sense for something like a PHP or HTML template, which Vite doesn't track as a module, so without the fallback, edits there…
The problem, as flagged in issue 20320 and fixed in PR 20323 by contributor Udit Dewan, is that the same detection logic was also catching JavaScript and TypeScript files. Specifically, files Tailwind had scanned but that Vite hadn't loaded as a module yet — think lazy-loaded routes or code that hasn't been imported…
The fix tightens that check so genuine template files still get the reload fallback they need, while JS and TS source files get treated correctly and benefit from Vite's fast module replacement instead.
The developer impact here is straightforward: fewer unnecessary full-page reloads during local development. That means less…
Nearby episodes from TailwindCSS
- Closing the Loop on the Spacing Type Bug
- Color Precision and a Regex Security Fix
- Native CSS Nesting Lands
- PostCSS Cache Fix Closes Stale Build Gap
- Weekly Recap - Correctness Fixes and CLI Watch Mode Returns
- Attribute Selector Parsing Fixed
- Quiet Edge Cases in Variants and Modifiers
- Weekly Recap - Source Handling & Developer Experience