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
Copy file name to clipboardExpand all lines: packages/rspack-dev-server/src/server.ts
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -261,9 +261,10 @@ export class RspackDevServer extends WebpackDevServer {
261
261
}
262
262
if(!clientImplementationFound){
263
263
thrownewError(
264
-
`${!isKnownWebSocketServerImplementation
265
-
? "When you use custom web socket implementation you must explicitly specify client.webSocketTransport. "
266
-
: ""
264
+
`${
265
+
!isKnownWebSocketServerImplementation
266
+
? "When you use custom web socket implementation you must explicitly specify client.webSocketTransport. "
267
+
: ""
267
268
}client.webSocketTransport must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to a JS file via require.resolve(...) which exports a class `
268
269
);
269
270
}
@@ -283,7 +284,7 @@ export class RspackDevServer extends WebpackDevServer {
283
284
if(mode==="production"){
284
285
this.logger.warn(
285
286
"Hot Module Replacement (HMR) is enabled for the production build. \n"+
286
-
"Make sure to disable HMR for production by setting `devServer.hot` to `false` in the configuration."
287
+
"Make sure to disable HMR for production by setting `devServer.hot` to `false` in the configuration."
287
288
);
288
289
}
289
290
compiler.options.devServer??={};
@@ -295,7 +296,7 @@ export class RspackDevServer extends WebpackDevServer {
295
296
if(mode==="production"){
296
297
this.logger.warn(
297
298
"React Refresh runtime should not be included in the production bundle.\n"+
298
-
"Make sure to disable React Refresh for production by setting `builtins.react.refresh` to `false` in the configuration."
299
+
"Make sure to disable React Refresh for production by setting `builtins.react.refresh` to `false` in the configuration."
0 commit comments