Sfoglia il codice sorgente

Add a short-circuit

Steven Silvester 7 anni fa
parent
commit
305b22d743
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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) {