Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Disable
fastRefresh
in shared Rsbuild configuration
In our projects, we found that using `rsbuild build --watch --mode development` instead of just `rsbuild build --watch` would speed up the re-build process But when doing so, the bundler enables the [fastRefresh](https://rsbuild.dev/plugins/list/plugin-react#fastrefresh) mode from plugin-react This mode does not work on `build` mode and trying to run the cozy-apps would produce a blank screen with some `$RefreshSig$ is not defined` This is because fastRefresh is meant to be run with `rsbuild dev` command So we want to disable this mode for all commands but `rsbuild dev`
- Loading branch information