forked from vitejs/vite
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Original issue from vitejs/vite vitejs#19538
Implement a configuration option to prevent full page reload during HMR and only reload the changed files. This is a complex feature that requires careful consideration of module dependencies and state management.
Required implementation:
- Add new configuration option for selective HMR
- Implement dependency graph tracking
- Add logic to determine minimal reload scope
- Handle edge cases like circular dependencies
- Add comprehensive tests
- Document the feature and its limitations
Considerations:
- Module boundary detection
- State preservation
- Performance impact
- Edge cases handling
This is an advanced task that requires deep understanding of Vite's HMR system.