We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce64d8 commit 4be5d8dCopy full SHA for 4be5d8d
lib/Server.js
@@ -19,6 +19,11 @@ class Server {
19
constructor(options = {}, compiler) {
20
// TODO: remove this after plugin support is published
21
if (options.hooks) {
22
+ process.emitWarning(
23
+ "Using 'compiler' as the first argument is deprecated. Please use 'options' as the first argument and 'compiler' as the second argument.",
24
+ "DeprecationWarning",
25
+ "DEP_WEBPACK_DEV_SERVER_API"
26
+ );
27
[options, compiler] = [compiler, options];
28
}
29
0 commit comments