Skip to content

Tailwind vite plugin forces full reload for server only modules managed by SSR frameworks #19744

@hi-ogawa

Description

@hi-ogawa

What version of Tailwind CSS are you using?

For example: v4.2.1

What build tool (or framework if it abstracts the build tool) are you using?

For example: Vite 7.3.1. React-router 7.13.1

What version of Node.js are you using?

For example: Stackblitz

What browser are you using?

For example: Chrome

What operating system are you using?

For example: Stackblitz

Reproduction URL

https://stackblitz.com/edit/github-rzxamhar?file=app%2Froutes%2Fhome.tsx

(Created based on official template https://github.com/remix-run/react-router-templates/tree/main/minimal)

Describe your issue

Reproduction steps:

  • Open stackblitz (or download locally)
  • Run pnpm dev
  • Input value in test-state input
  • Modify app/hdr-dep.ts
  • Observe input value is lost due to full reload instead of server hmr (aka HDR)

Similar regression is observed in @vitejs/plugin-rsc test suite and tracked in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions