File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -135,13 +135,15 @@ class Server {
135
135
}
136
136
137
137
// eslint-disable-next-line class-methods-use-this
138
- async normalizeOptions ( options ) {
138
+ async normalizeOptions ( ) {
139
+ const { options } = this ;
140
+
139
141
if ( ! this . logger ) {
140
142
this . logger = this . compiler . getInfrastructureLogger ( "webpack-dev-server" ) ;
141
143
}
142
144
143
145
// TODO: improve this to not use .find for compiler watchOptions
144
- const configArray = this . getCompilerConfigArray ( this . compiler ) ;
146
+ const configArray = this . getCompilerConfigArray ( ) ;
145
147
const watchOptionsConfig = configArray . find (
146
148
( config ) => config . watch !== false && config . watchOptions
147
149
) ;
@@ -1438,7 +1440,7 @@ class Server {
1438
1440
getStats ( statsObj ) {
1439
1441
const stats = Server . DEFAULT_STATS ;
1440
1442
1441
- const configArray = this . getCompilerConfigArray ( this . compiler ) ;
1443
+ const configArray = this . getCompilerConfigArray ( ) ;
1442
1444
const statsOption = this . getStatsOption ( configArray ) ;
1443
1445
1444
1446
if ( typeof statsOption === "object" && statsOption . warningsFilter ) {
@@ -1669,7 +1671,7 @@ class Server {
1669
1671
}
1670
1672
1671
1673
async start ( ) {
1672
- await this . normalizeOptions ( this . options ) ;
1674
+ await this . normalizeOptions ( ) ;
1673
1675
1674
1676
if ( this . options . ipc ) {
1675
1677
await new Promise ( ( resolve , reject ) => {
You can’t perform that action at this time.
0 commit comments