Skip to content

[Bug]: The previous progress bar was not destroyed when compiler closed & rerun #8444

@9aoy

Description

@9aoy

System Info

@rspack/core 1.1.1

Details

Rsbuild supports restarting the server when configuration files change (it will call the rspack compiler.close method and create a new rspack compiler run).

Everything works fine on restart, the previous compiler shuts down as expected, except that the previous progress bar doesn't seem to be destroyed.

Image

Reproduce link

https://github.com/web-infra-dev/rsbuild/tree/main/examples/react

Reproduce Steps

  • pnpm i
  • cd examples/react
  • enable progressBar in rsbuild.config.ts
  • pnpm dev or pnpm build -w
  • Save the rsbuild.config.ts file multiple times via ctrl + s
export default defineConfig({
  plugins: [pluginReact()],
+  dev: {
+   progressBar: true
+  },
});

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingteamThe issue/pr is created by the member of Rspack.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions