Skip to content

Commit

Permalink
Make React Fast Refresh opt-in for now
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Oct 7, 2022
1 parent 3be8e00 commit c4ffbfd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/crafty-preset-react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ To enable it, add these two parameters to your bundle in `crafty.config.js`:
```js
{
hot: true,
react: true,
// also works with
react: {
refreshMode: "fast"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/crafty-preset-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
// the configuration
if (bundle.react && typeof bundle.react === "boolean") {
bundle.react = {
refreshMode: "fast"
refreshMode: "hot" // fast-refresh is opt-in for now, default to hot
};
}
},
Expand Down

0 comments on commit c4ffbfd

Please sign in to comment.