Skip to content

Commit

Permalink
chore: add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Mar 23, 2022
1 parent 63c0282 commit 4c9f372
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/server/ws.ts
Expand Up @@ -30,6 +30,7 @@ export function createWebSocketServer(
const hmr = isObject(config.server.hmr) && config.server.hmr
const hmrServer = hmr && hmr.server
const hmrPort = hmr && hmr.port
// TODO: the main server port may not have been chosen yet as it may use the next available
const portsAreCompatible = !hmrPort || hmrPort === config.server.port
const wsServer = hmrServer || (portsAreCompatible && server)

Expand Down

0 comments on commit 4c9f372

Please sign in to comment.