rspack icon indicating copy to clipboard operation
rspack copied to clipboard

[Bug]: Infinite reload loop

Open aryzing opened this issue 6 months ago • 1 comments

System Info

System: OS: Linux 6.8 Ubuntu 22.04 LTS CPU: (16) x64 AMD Memory: 24 GB / 32 GB Container: Yes Shell: 5.1.16 - /bin/bash Binaries: Node: 23.11.0 - ~/.nvm/versions/node/v23.11.0/bin/node npm: 10.9.2 - ~/.nvm/versions/node/v23.11.0/bin/npm bun: 1.2.8 - ~/.bun/bin/bun Browsers: Brave Browser: 135 npmPackages: @rspack/cli: 1.3.4 => 1.3.4 @rspack/core: 1.3.4 => 1.3.4 @rspack/plugin-react-refresh: 1.2.0 => 1.2.0

Details

Using rspack for a web extension. There are multiple entry points configured, one for the content script, and one for the inpage script. The config also includes support for react fast refresh. The command used to build the project is rspack build.

Reproduce link

No response

Reproduce Steps

When the code is changed, all pages running the content script and the inpage script go into an infinite full page reload cycle with high cpu usage. The extension popup works fine, reloading only once as expected.

aryzing avatar Apr 14 '25 16:04 aryzing