### Version ```sh System: OS: macOS 14.6.1 CPU: (10) arm64 Apple M1 Max Memory: 183.77 MB / 32.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 128.0.6613.120 Safari: 17.6 npmPackages: @rsbuild/core: 1.0.1-rc.5 => 1.0.1-rc.5 @rsbuild/plugin-react: 1.0.1-rc.5 => 1.0.1-rc.5 ``` ### Details RSBuild's lazily loaded children lose the ability to hot reload when additional exports exist in a file that is lazily loaded. I would expect this to work, or at a minimum a warning/error to be thrown. https://github.com/user-attachments/assets/32836d94-2105-46dd-b342-a92224f047a8 ### Reproduce link https://github.com/MIreland/lazy-loading-rsbuild-bug ### Reproduce Steps 1. execute `pnpm dev` 2. edit `ParentExample.tsx` or `ChildExample.tsx` and save the file- note that the page does not hot reload 3. comment out line 6 in `ParentExample.tsx` (the `export const THIS_BREAKS_THINGS`). 4. Reload the page. 5. edit `ParentExample.tsx` or `ChildExample.tsx` - hot reloading works.
Version
System: OS: macOS 14.6.1 CPU: (10) arm64 Apple M1 Max Memory: 183.77 MB / 32.00 GB Shell: 5.9 - /bin/zsh Browsers: Chrome: 128.0.6613.120 Safari: 17.6 npmPackages: @rsbuild/core: 1.0.1-rc.5 => 1.0.1-rc.5 @rsbuild/plugin-react: 1.0.1-rc.5 => 1.0.1-rc.5Details
RSBuild's lazily loaded children lose the ability to hot reload when additional exports exist in a file that is lazily loaded.
I would expect this to work, or at a minimum a warning/error to be thrown.
Screen.Recording.2024-09-09.at.8.37.22.PM.mov
Reproduce link
https://github.com/MIreland/lazy-loading-rsbuild-bug
Reproduce Steps
pnpm devParentExample.tsxorChildExample.tsxand save the file- note that the page does not hot reloadParentExample.tsx(theexport const THIS_BREAKS_THINGS).ParentExample.tsxorChildExample.tsx- hot reloading works.