Skip to content

HMR Update Not Happening in Vite Plugin for Qwik #316

@RaghavBhat02

Description

@RaghavBhat02

Describe the bug
Every time I make add a class, I have to restart my whole dev server in order to see the change. I've added a stackblitz of my project and a github repo. If you navigate to src/components/header/header.tsx, you will see that I was testing windi classes in my component. As I make changes, specifically I find it easy to test using classes that change the text color, you will see that it does not change in hmr. Only when I restart the whole dev server, does it work.

Minimal Reproductions

StackBlitz:
https://stackblitz.com/edit/github-zwu2tc?file=src/components/header/header.tsx
GitHub
https://github.com/RaghavBhat02/vite-windi-hmr-not-working.git
Versions

  • vite-plugin-windicss: ^1.8.10"
  • vite: 4.0.3
  • framework(vue/react/svelte/etc): @builder.io/qwik 0.16.2 and @builder.io/qwik-city 0.0128

Additonal Context
I have also tried importing devtools into each of my entries

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions