File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,15 @@ class Server {
20
20
constructor ( options = { } , compiler ) {
21
21
// TODO: remove this after plugin support is published
22
22
23
- const showDeprecationWarning = util . deprecate (
24
- ( ) => { } ,
25
- "Using 'compiler' as the first argument is deprecated. Please use 'options' as the first argument and 'compiler' as the second argument." ,
26
- "DEP_WEBPACK_DEV_SERVER_API"
27
- ) ;
28
-
29
23
if ( options . hooks ) {
24
+ const showDeprecationWarning = util . deprecate (
25
+ ( ) => { } ,
26
+ "Using 'compiler' as the first argument is deprecated. Please use 'options' as the first argument and 'compiler' as the second argument." ,
27
+ "DEP_WEBPACK_DEV_SERVER_API"
28
+ ) ;
29
+
30
30
showDeprecationWarning ( ) ;
31
+
31
32
[ options , compiler ] = [ compiler , options ] ;
32
33
}
33
34
You can’t perform that action at this time.
0 commit comments