Skip to content

Commit 8de5d0a

Browse files
committed
fix errant always-on log message regarding 'setup'
1 parent 5982806 commit 8de5d0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Server.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,10 @@ function Server(compiler, options) {
343343
},
344344

345345
setup: () => {
346-
log('Using "setup" is deprecated and will be removed in the next major version. Please use the "before" and "after" hooks instead.');
347-
log('If "setup" was working fine for you until now, simply replace it with "before"');
348-
if (typeof options.setup === 'function') { options.setup(app, this); }
346+
if (typeof options.setup === 'function') {
347+
log('The `setup` option is deprecated and will be removed in v3. Please update your config to use `before`');
348+
options.setup(app, this);
349+
}
349350
}
350351
};
351352

0 commit comments

Comments
 (0)