Skip to content

Commit 6094d7a

Browse files
test: fix
1 parent 5e6253d commit 6094d7a

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

test/fixtures/reload-config/webpack.config.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"use strict";
22

3+
const webpack = require("webpack");
4+
5+
const isWebpack5 = webpack.version.startsWith("5");
6+
37
module.exports = {
48
mode: "development",
59
context: __dirname,
@@ -16,8 +20,14 @@ module.exports = {
1620
},
1721
],
1822
},
19-
infrastructureLogging: {
20-
level: "warn",
21-
},
22-
node: false,
23+
infrastructureLogging: isWebpack5
24+
? {
25+
level: "info",
26+
stream: {
27+
write: () => {},
28+
},
29+
}
30+
: {
31+
level: "info",
32+
},
2333
};

0 commit comments

Comments
 (0)