WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/MultiWatching.js
@@ -13,6 +13,7 @@
class MultiWatching {
   /**
    * Creates an instance of MultiWatching.
    * @param {Watching[]} watchings child compilers' watchers
    * @param {MultiCompiler} compiler the compiler
    */
@@ -22,6 +23,7 @@
   }
   /**
    * Processes the provided error callback.
    * @param {ErrorCallback=} callback signals when the build has completed again
    * @returns {void}
    */
@@ -31,7 +33,7 @@
            this.watchings,
            (watching, callback) => watching.invalidate(callback),
            (err) => {
               callback(err);
               callback(/** @type {Error | null} */ (err));
            }
         );
      } else {
@@ -54,6 +56,7 @@
   }
   /**
    * Processes the provided error callback.
    * @param {ErrorCallback} callback signals when the watcher is closed
    * @returns {void}
    */
@@ -67,7 +70,7 @@
            this.compiler.hooks.watchClose.call();
            if (typeof callback === "function") {
               this.compiler.running = false;
               callback(err);
               callback(/** @type {Error | null} */ (err));
            }
         }
      );