Skip to content

Commit 6ef561c

Browse files
fix: postpone initialize
1 parent fd63e02 commit 6ef561c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/Server.js

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

4242
normalizeOptions(
43-
this.compiler,
44-
this.options,
45-
this.logger,
46-
Server.findCacheDir()
43+
this.compiler,
44+
this.options,
45+
this.logger,
46+
Server.findCacheDir()
4747
);
48+
}
4849

50+
initialize() {
4951
this.applyDevServerPlugin();
5052

5153
this.webSocketServerImplementation = getSocketServerImplementation(
@@ -924,6 +926,8 @@ class Server {
924926
.then((foundPort) => {
925927
this.options.port = foundPort;
926928

929+
this.initialize();
930+
927931
return this.server.listen(
928932
this.options.port,
929933
this.options.host,

0 commit comments

Comments
 (0)