Skip to content

Commit

Permalink
Update react-refresh plugin instructions to run on development only
Browse files Browse the repository at this point in the history
React Refresh only works on development and throws on any other environment.
It's currently making `yarn build` fail.
Ref: facebook/react#15939
  • Loading branch information
brunolemos authored Jun 19, 2020
1 parent afa8930 commit dc132c9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/plugin-react-refresh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ In addition, you have to add `react-refresh/babel` as a plugin to your babel con
```js
// babel.config.json
{
"plugins": [
"react-refresh/babel"
]
"env": {
"development": {
"plugins": [
"react-refresh/babel"
]
}
}
}
```

Expand Down

0 comments on commit dc132c9

Please sign in to comment.