File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -603,10 +603,7 @@ class Server<
603603 const compilerOptions = this . #getCompilerOptions( ) ;
604604 const compilerWatchOptions = compilerOptions . watchOptions ;
605605 const getWatchOptions = (
606- watchOptions : WatchOptions & {
607- aggregateTimeout ?: number ;
608- poll ?: number | boolean ;
609- } = { } ,
606+ watchOptions : WatchFiles [ 'options' ] = { } ,
610607 ) : WatchOptions => {
611608 const getPolling = ( ) => {
612609 if ( typeof watchOptions . usePolling !== 'undefined' ) {
@@ -640,6 +637,7 @@ class Server<
640637
641638 const usePolling = getPolling ( ) ;
642639 const interval = getInterval ( ) ;
640+ const { poll : _poll , ...rest } = watchOptions ;
643641 return {
644642 ignoreInitial : true ,
645643 persistent : true ,
@@ -650,7 +648,7 @@ class Server<
650648 // Respect options from compiler watchOptions
651649 usePolling,
652650 interval,
653- ...watchOptions ,
651+ ...rest ,
654652 } ;
655653 } ;
656654 const getStaticItem = (
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ export interface WatchFiles {
9797 paths : string | string [ ] ;
9898 options ?: WatchOptions & {
9999 aggregateTimeout ?: number ;
100- ignored ?: WatchOptions [ 'ignored' ] ;
101100 poll ?: number | boolean ;
102101 } ;
103102}
You can’t perform that action at this time.
0 commit comments