rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Bug]: Child HMR not working when parent component has HMR

Open yuhengshen opened this issue 4 months ago • 2 comments

Version

System:
    OS: Linux 6.6 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
    Memory: 13.55 GB / 15.59 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  npmPackages:
    @rsbuild/core: ^1.5.4 => 1.5.6 
    @rsbuild/plugin-vue2: ^1.0.4 => 1.0.4

Details

  1. ​​trigger the parent component's HMR.​
  2. changing the child component, HMR is not working.

Reproduce link

yuhengshen/rsbuild-test-hmr

Reproduce Steps

yuhengshen avatar Sep 10 '25 10:09 yuhengshen

I encountered the same problem

tclxshunquan-wang avatar Sep 11 '25 13:09 tclxshunquan-wang

When will this problem be fixed? @stormslowly

tclxshunquan-wang avatar Oct 14 '25 08:10 tclxshunquan-wang

@tclxshunquan-wang @yuhengshen I had dome some studies about your reproduction, but I didn't get much clue about the root cause due to i don't know much about Vue and it's compilation.

Since Vue2 is end of life more than 1 year and We don't have much bandwidth to deal Vue2's case.

And Rsbuild has a builtin Vue3 plugin, could plz have a try with that by upgrading to Vue3?

stormslowly avatar Nov 28 '25 06:11 stormslowly