@@ -35,8 +35,8 @@ import type {
3535import compression from 'http-compression' ;
3636import ipaddr from 'ipaddr.js' ;
3737import type { App } from 'open' ;
38- import { getPort } from './getPort' ;
39- import { WebsocketServer } from './servers/WebsocketServer' ;
38+ import { getPort } from './getPort.js ' ;
39+ import { WebsocketServer } from './servers/WebsocketServer.js ' ;
4040import type {
4141 AddressInfo ,
4242 BasicApplication ,
@@ -78,8 +78,8 @@ import type {
7878 WebSocketServer ,
7979 WebSocketServerConfiguration ,
8080 WebSocketServerImplementation ,
81- } from './types' ;
82- import type { ConnectApplication } from './types' ;
81+ } from './types.js ' ;
82+ import type { ConnectApplication } from './types.js ' ;
8383
8484const { styleText } = util ;
8585const require = createRequire ( import . meta. url ) ;
@@ -574,7 +574,7 @@ class Server<
574574 // Configuration with the `devServer` options
575575 const compilerWithDevServer = (
576576 this . compiler as MultiCompiler
577- ) . compilers . find ( ( config ) => config . options . devServer ) ;
577+ ) . compilers . find ( ( config : Compiler ) => config . options . devServer ) ;
578578
579579 if ( compilerWithDevServer ) {
580580 return compilerWithDevServer . options ;
@@ -583,7 +583,7 @@ class Server<
583583 // Compiler for `web` target
584584 const compilerWithWebTarget = (
585585 this . compiler as MultiCompiler
586- ) . compilers . find ( ( compiler ) => Boolean ( compiler . platform . web ) ) ;
586+ ) . compilers . find ( ( compiler : Compiler ) => Boolean ( compiler . platform . web ) ) ;
587587
588588 if ( compilerWithWebTarget ) {
589589 return compilerWithWebTarget . options ;
@@ -1396,7 +1396,7 @@ class Server<
13961396
13971397 if ( this . options . hot ) {
13981398 const HMRPluginExists = compiler . options . plugins . find (
1399- ( plugin ) =>
1399+ ( plugin : EXPECTED_ANY ) =>
14001400 plugin && plugin . constructor === HotModuleReplacementPlugin ,
14011401 ) ;
14021402
0 commit comments