Skip to content

Commit e9105e7

Browse files
fix: postpone initialize
1 parent 52c3d69 commit e9105e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Server.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ class Server {
4040
this.webSocketHeartbeatInterval = 30000;
4141

4242
normalizeOptions(this.compiler, this.options, this.logger);
43+
}
4344

45+
initialize() {
4446
this.applyDevServerPlugin();
4547

4648
this.webSocketServerImplementation = getSocketServerImplementation(
@@ -715,6 +717,8 @@ class Server {
715717
.then((foundPort) => {
716718
this.options.port = foundPort;
717719

720+
this.initialize();
721+
718722
return this.server.listen(
719723
this.options.port,
720724
this.options.host,

0 commit comments

Comments
 (0)