@samitouri / QOS-React-2 / commits / 426872679d

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)

Ruslan Lesiutin committed Jan 8, 2025 at 12:14 UTC 426872679d0f15f7a008a61ac97cd4e63d1bfd96
1 file changed +6
packages/react-devtools-shell/webpack-server.js
+6
@@ -174,6 +174,9 @@ const appServer = new WebpackDevServer(
174 port: 8080,
175 client: {
176 logging: 'warn',
177 + overlay: {
178 + warnings: false,
179 + },
180 },
181 static: {
182 directory: __dirname,
@@ -189,6 +192,9 @@ const e2eRegressionAppServer = new WebpackDevServer(
192 port: 8181,
193 client: {
194 logging: 'warn',
195 + overlay: {
196 + warnings: false,
197 + },
198 },
199 static: {
200 publicPath: '/dist/',