vite-plugin-redux-hmr

JSON →
library 1.0.1 ·javascript
verified Jun 4, 2026

Vite plugin for Redux Hot Module Replacement (HMR) during development. Current version 1.0.1, released February 2025 (single release). It eliminates full-page reloads when Redux reducers change, preserving store state. Requires a specific file structure: reducers must be default-exported from a separate file, and the store index file must import it. Configures store index and reducers file paths, optional store variable name and reducer wrapping function. Only works in Vite dev mode; no circular dependencies between files or Vite falls back to full reload. TypeScript types included. Lightweight alternative to manual HMR setup with webpack-hot-middleware or custom solutions. Minimal dependencies (only Vite as peer dependency).