Skip to content

Commit

Permalink
fix(docs): Replace _unstableHotReload with hotReload
Browse files Browse the repository at this point in the history
  • Loading branch information
leSamo committed Feb 12, 2024
1 parent bbef2f3 commit 3b3e4e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# _unstableHotReload

Do not use HMR for production builds
Do not use HMR for production builds. Deprecated in favor of `hotReload`.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Hot Module Replacement (HMR) exchanges, adds, or removes modules while an applic

HMR **is disabled by default**. That is because HMR and module federation can be a bit flaky. Even though it worked in several applications during testing, we keep this feature opt-in, before the stability was validated on more projects.

To enable the HRM, go to your `fec.config.js` or `dev.webpack.config.js` and add the `_unstableHotReload` flag.
To enable the HRM, go to your `fec.config.js` or `dev.webpack.config.js` and add the `hotReload` flag. This flag replaces the deprecated `_unstableHotReload` flag.

<Alert isInline className="pf-u-mt-md pf-u-mb-md" variant="danger" title="Do not add the flag to production webpack config!" />

Expand All @@ -21,6 +21,6 @@ To enable the HRM, go to your `fec.config.js` or `dev.webpack.config.js` and add
{
// application config
...
_unstableHotReload: true
hotReload: true
}
```

0 comments on commit 3b3e4e7

Please sign in to comment.