WXL
3 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/tapable/lib/Hook.js
@@ -66,11 +66,14 @@
   _tap(type, options, fn) {
      if (typeof options === "string") {
         options = {
            name: options.trim()
            name: options
         };
      } else if (typeof options !== "object" || options === null) {
         throw new Error("Invalid tap options");
      }
      if (typeof options.name === "string") {
         options.name = options.name.trim();
      }
      if (typeof options.name !== "string" || options.name === "") {
         throw new Error("Missing name for tap");
      }