-
Notifications
You must be signed in to change notification settings - Fork 199
[Bug]: HMR Memory leak when saving rsbuild.config.ts multiple times #2288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report, we will try to reproduce and fix this. |
This problem cannot be reproduced in my machine. Can you provide a minimum reproduction? |
The same happens on my machine too, windows |
hey, can you confirm that this happened after #3261 (1.0.1-beta.16)? |
I am currently at @rsbuild/core 1.0.17 Also, a discovery, removing watchFiles reduces the intensity of the memory leak |
We have fixed the known memory leak issues. If anyone still encounters memory leaks with the latest version of Rsbuild, feel free to create a new issue with a reproducible repo. |
Version
Details
Running dev server and changing the
rsbuild.config.ts
causes the memory to jump up 2-4gb at a time, eventually reaching the machine's maximum memory limit and slowing down HMR from 10 seconds to 1+ minutes. Attached a video to show this happening.Reproduce link
Video attached
Reproduce Steps
rsbuild.config.ts
multiple times2024-05-09_14h03_41.mp4
The text was updated successfully, but these errors were encountered: