@module-federation/vite 1.15.1 → 1.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.cts CHANGED
@@ -84,7 +84,19 @@ interface PluginDevOptions {
84
84
  disableLiveReload?: boolean;
85
85
  disableHotTypesReload?: boolean;
86
86
  disableDynamicRemoteTypeHints?: boolean;
87
- remoteHmr?: boolean;
87
+ /**
88
+ * Controls cross-federation HMR for remote modules.
89
+ *
90
+ * - `false` / `undefined` — HMR disabled (default).
91
+ * - `true` — HMR enabled with auto-detected strategy: when a React plugin
92
+ * is detected (`@vitejs/plugin-react` or `@vitejs/plugin-react-swc`),
93
+ * broadcast/relay is suppressed and React Fast Refresh handles updates
94
+ * via the shared `/@react-refresh` proxy. Other frameworks fall back to
95
+ * full page reloads.
96
+ * - `'full-reload'` — HMR enabled, always use full page reloads even when
97
+ * a framework with native cross-federation HMR is detected.
98
+ */
99
+ remoteHmr?: boolean | 'full-reload';
88
100
  }
89
101
  interface RemoteTypeUrl {
90
102
  alias?: string;
package/lib/index.d.mts CHANGED
@@ -84,7 +84,19 @@ interface PluginDevOptions {
84
84
  disableLiveReload?: boolean;
85
85
  disableHotTypesReload?: boolean;
86
86
  disableDynamicRemoteTypeHints?: boolean;
87
- remoteHmr?: boolean;
87
+ /**
88
+ * Controls cross-federation HMR for remote modules.
89
+ *
90
+ * - `false` / `undefined` — HMR disabled (default).
91
+ * - `true` — HMR enabled with auto-detected strategy: when a React plugin
92
+ * is detected (`@vitejs/plugin-react` or `@vitejs/plugin-react-swc`),
93
+ * broadcast/relay is suppressed and React Fast Refresh handles updates
94
+ * via the shared `/@react-refresh` proxy. Other frameworks fall back to
95
+ * full page reloads.
96
+ * - `'full-reload'` — HMR enabled, always use full page reloads even when
97
+ * a framework with native cross-federation HMR is detected.
98
+ */
99
+ remoteHmr?: boolean | 'full-reload';
88
100
  }
89
101
  interface RemoteTypeUrl {
90
102
  alias?: string;