Skip to content

Commit 3a86678

Browse files
authored
Wrong TypeScript syntax
1 parent 97b8872 commit 3a86678

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ function resolveDevServerUrl(address: AddressInfo, config: ResolvedConfig): DevS
401401
const serverAddress = address.family === 'IPv6' ? `[${address.address}]` : address.address
402402
const host = configHmrHost ?? configHost ?? serverAddress
403403

404-
const port = typeof config.server.hmr === 'object' ? config.server.hmr.port : address.port
404+
const configHmrClientPort = typeof config.server.hmr === 'object' ? config.server.hmr.clientPort : null
405+
const port = configHmrPort ?? address.port
405406

406407
return `${protocol}://${host}:${port}`
407408
}

0 commit comments

Comments
 (0)