We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad7ed5 commit 114e67cCopy full SHA for 114e67c
client/index.js
@@ -92,8 +92,7 @@ const onSocketMsg = {
92
},
93
'log-level': function logLevel(level) {
94
const hotCtx = require.context('webpack/hot', false, /^\.\/log$/);
95
- const contextKeys = hotCtx.keys();
96
- if (contextKeys.length && contextKeys['./log']) {
+ if (hotCtx.keys().indexOf('./log') !== -1) {
97
hotCtx('./log').setLogLevel(level);
98
}
99
switch (level) {
0 commit comments