TailwindCSS: Vite Plugin Resolution Fix

A regression in the Tailwind Vite plugin that caused JavaScript plugins to incorrectly resolve to CSS files has been fixed. The issue affected packages like DaisyUI where plugin resolution would fail with "Unknown file extension .css" errors.

Duration: PT1M59S

Episode overview

This episode is a short developer briefing from TailwindCSS.

It explains recent repository work in plain language.

  • Show: TailwindCSS
  • Published: 2026-04-22T00:00:00Z
  • Audio duration: PT1M59S

Source and disclosure

TailwindCSS is an unofficial, AI-generated summary of public activity in tailwindlabs/tailwindcss on GitHub.

Podlog isn't affiliated with or endorsed by the project or its maintainers. Episodes aren't reviewed by a person before they go out, so check the source repository for the full story.

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning, this is your TailwindCSS briefing for Tuesday, April 22nd, 2026.

ArcherGu merged a critical fix for the Tailwind Vite plugin that resolves a regression introduced in pull request 19803. The issue caused JavaScript plugin resolution to incorrectly point to browser CSS entries instead of the proper JavaScript files. This particularly affected packages like DaisyUI, where attempting…

The fix maintains the alias resolution behavior from the previous update while adding a JavaScript-entry guard to the custom resolver. When Vite resolves a plugin request to a non-JavaScript file like CSS, the resolver now returns undefined, allowing Tailwind's internal fallback resolver to properly locate the…

The solution involved modifying the packages/@tailwindcss-vite/src/index.ts file with 24 lines added and 2 removed. ArcherGu also added comprehensive integration tests covering 225 new lines of test coverage to prevent similar regressions. The tests specifically verify that packages with main and module entries…

Robin Malfait provided additional refinements to the approach, ensuring compatibility with the original TypeScript configuration path resolution that the previous update was…

What…

Nearby episodes from TailwindCSS

  1. Weekly Recap - Vite Plugin Fixes and Dependency Updates
  2. Infrastructure Updates and Bug Fixes
  3. Vite Plugin Fixes and Dependency Updates
  4. Playground Dependencies Updated
  5. Vite Path Resolution Fix and 4.2.4 Release
  6. Weekly Recap - Standalone CLI Enhancements
  7. Version 4.2.3 Release and OIDC Publishing Setup
  8. Weekly Recap - Documentation Maintenance