-
Notifications
You must be signed in to change notification settings - Fork 699
Closed
Labels
Description
Reproduction link or steps
See #5219
What is expected?
generateHmrPatch returns a value with fullReload: true
What is actually happening?
generateHmrPatch returns undefined
System Info
https://github.com/rolldown/rolldown/tree/49f5c23d1b73cf0013091735eb3f5e22de83b165Any additional comments?
I think generateHmrPatch is returning undefined because this part does not check the watched files.
rolldown/crates/rolldown/src/hmr/hmr_manager.rs
Lines 111 to 116 in 49f5c23
| for changed_file_path in changed_file_paths { | |
| let changed_file_path = ArcStr::from(changed_file_path); | |
| if let Some(module_idx) = self.module_idx_by_abs_path.get(&changed_file_path) { | |
| changed_modules.insert(*module_idx); | |
| } | |
| } |
Watch mode handles this in a completely different way, so I'm not sure how this should be fixed.
rolldown/crates/rolldown/src/bundler.rs
Lines 118 to 123 in 49f5c23
| let mode = | |
| if !self.options.experimental.is_incremental_build_enabled() || changed_ids.is_empty() { | |
| ScanMode::Full | |
| } else { | |
| ScanMode::Partial(changed_ids) | |
| }; |
Reactions are currently unavailable