Skip to content

Commit

Permalink
fix: remove invalid check
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Mar 23, 2022
1 parent 64f2d07 commit 63c0282
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/server/ws.ts
Expand Up @@ -30,8 +30,7 @@ export function createWebSocketServer(
const hmr = isObject(config.server.hmr) && config.server.hmr
const hmrServer = hmr && hmr.server
const hmrPort = hmr && hmr.port
const portsAreCompatible =
!hmrPort || !config.server.port || hmrPort === config.server.port
const portsAreCompatible = !hmrPort || hmrPort === config.server.port
const wsServer = hmrServer || (portsAreCompatible && server)

if (wsServer) {
Expand Down

0 comments on commit 63c0282

Please sign in to comment.