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
…147)

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 and drwpow committed Jul 27, 2020
1 parent 3c7a3ca commit e3546c4
Showing 1 changed file with 7 additions and 3 deletions.
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 e3546c4

Please sign in to comment.