ソースを参照

Add a short-circuit

Steven Silvester 7 年 前
コミット
305b22d743
1 ファイル変更3 行追加0 行削除
  1. 3 0
      jupyterlab/webpack.config.js

+ 3 - 0
jupyterlab/webpack.config.js

@@ -107,6 +107,9 @@ module.exports = {
       // Limit the watched files to those in our local linked package dirs.
       var ignore = true;
       Object.keys(localLinked).forEach(function (name) {
+        if (!ignore) {
+          return;
+        }
         var rootPath = localLinked[name];
         var contained = localPath.indexOf(rootPath + path.sep) !== -1;
         if (localPath === rootPath || contained) {