You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**`disableRefreshCheck`**|`boolean`|`false`| Disables detection of react-refresh's Babel plugin. Useful if you do not parse JS files within `node_modules`, or if you have a Babel setup not entirely controlled by Webpack. |
113
-
|**`forceEnable`**|`boolean`|`false`| Enables the plugin forcefully. Useful if you want to use the plugin in production, or if you are using Webpack's `none` mode without `NODE_ENV`, for example. |
114
-
|**`useLegacyWDSSockets`**|`boolean`|`false`| Set this to true if you are using a webpack-dev-server version prior to 3.8 as it requires a custom SocketJS implementation. If you use this, you will also need to install `sockjs-client` as a peer depencency. |
109
+
### `options.disableRefreshCheck`
110
+
111
+
Type: `boolean`
112
+
Default: `false`
113
+
114
+
Disables detection of react-refresh's Babel plugin.
115
+
Useful if you do not parse JS files within `node_modules`, or if you have a Babel setup not entirely controlled by Webpack.
116
+
117
+
### `options.forceEnable`
118
+
119
+
Type: `boolean`
120
+
Default: `false`
121
+
122
+
Enables the plugin forcefully.
123
+
Useful if you want to use the plugin in production, or if you are using Webpack's `none` mode without `NODE_ENV`, for example.
124
+
125
+
### `options.overlay`
126
+
127
+
Type: `boolean | ErrorOverlayOptions`
128
+
Default: `undefined`
129
+
130
+
Modifies how the error overlay integration works in the plugin.
131
+
132
+
- If `options.overlay` is not provided or is `true`, the plugin will use the bundled error overlay interation.
133
+
- If `options.overlay` is `false`, it will disable the error overlay integration.
134
+
- If an `ErrorOverlayOptions` object is provided:
135
+
(**NOTE**: This is an advanced option that exists mostly for tools like `create-react-app` or `Next.js`)
136
+
137
+
- A `module` property must be defined.
138
+
It should reference a JS file that exports at least two functions with footprints as follows:
0 commit comments