-
-
Notifications
You must be signed in to change notification settings - Fork 257
Description
Version
System:
OS: macOS 15.2
CPU: (12) arm64 Apple M2 Pro
Memory: 529.88 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 132.0.6834.111
Safari: 18.2
npmPackages:
@rsbuild/core: ^1.2.3 => 1.2.3
@rsbuild/plugin-babel: ^1.0.3 => 1.0.3
@rsbuild/plugin-solid: ^1.0.4 => 1.0.4Details
Description
Hot Module Replacement (HMR) is not functioning when using Rsbuild as the bundler in a Tauri project.
Expected Behavior
- When making changes to the source code, the application should update automatically without requiring a full reload
- HMR should work similarly to how it functions with Vite bundler
Actual Behavior
- Changes to source code do not trigger HMR when using Rsbuild
- Application requires a full reload to see changes
- The same setup works correctly when using Vite as the bundler
Reproduce link
https://github.com/wxiaoyun/rsbuild-hmr-reproduction
Reproduce Steps
pnpm i
# Initialize tauri ios development: https://tauri.app/start/prerequisites/#ios
# Setup rust compile targets
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
# Check ios dev dependencies
pnpm run tauri ios init
# install xcode and download an iOS simulator
# boot one of the simulator
# example:
xcrun simctl boot 56A7D041-EE9F-40BE-8C34-190CA3924DE9
pnpm run tauri:rsbuild ios dev <simulator_device_name> # for rsbuild
pnpm run tauri:vite ios dev <simulator_device_name> # for vite
# e.g. pnpm run tauir:rsbuild ios dev "iPhone 16 Pro"
# open safari devtools to see console logsReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels



