Skip to content

Commit d29fb00

Browse files
pedronauckgaearon
authored andcommitted
Add missing import in react-dev-utils README.md (#1369)
1 parent 11cc5ae commit d29fb00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-dev-utils/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Extracts and prettifies warning and error messages from webpack [stats](https://
117117
```js
118118
var webpack = require('webpack');
119119
var config = require('../config/webpack.config.dev');
120+
var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
120121

121122
var compiler = webpack(config);
122123

@@ -184,6 +185,7 @@ You can control the behavior on `<Enter>` with `isYesDefault`.
184185

185186
```js
186187
var prompt = require('react-dev-utils/prompt');
188+
187189
prompt(
188190
'Are you sure you want to eat all the candy?',
189191
/* isYesDefault */ false

0 commit comments

Comments
 (0)