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 b2cf847 commit 0b4729fCopy full SHA for 0b4729f
client/index.js
@@ -79,7 +79,8 @@ var onSocketMsg = {
79
},
80
"log-level": function(level) {
81
var hotCtx = require.context("webpack/hot", false, /^\.\/log$/);
82
- if(hotCtx.keys().length > 0) {
+ var contextKeys = hotCtx.keys();
83
+ if(contextKeys.length && contextKeys["./log"]) {
84
hotCtx("./log").setLogLevel(level);
85
}
86
switch(level) {
0 commit comments