Skip to content

Commit 4268726

Browse files
authored
chore[react-devtools-shell]: disable warnings in dev server overlay (#32005)
Disables warnings Webpack DevServer overlay, which is used by React DevTools shell. We are testing against `react-native-web` in this shell, and it installs older versions of the `react-dom` package, and there are some expected discrepancies between it and `react-dom` from source. Before: ![Screenshot 2025-01-07 at 12 50 21](https://github.com/user-attachments/assets/ba7d435e-3265-4446-9994-6a77c6d3d4ef) After: ![Screenshot 2025-01-07 at 12 49 47](https://github.com/user-attachments/assets/cb45d07c-f561-496a-b76f-bdce3154ab88)
1 parent a160102 commit 4268726

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-devtools-shell/webpack-server.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ const appServer = new WebpackDevServer(
174174
port: 8080,
175175
client: {
176176
logging: 'warn',
177+
overlay: {
178+
warnings: false,
179+
},
177180
},
178181
static: {
179182
directory: __dirname,
@@ -189,6 +192,9 @@ const e2eRegressionAppServer = new WebpackDevServer(
189192
port: 8181,
190193
client: {
191194
logging: 'warn',
195+
overlay: {
196+
warnings: false,
197+
},
192198
},
193199
static: {
194200
publicPath: '/dist/',

0 commit comments

Comments
 (0)