WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/enhanced-resolve/lib/util/entrypoints.js
@@ -112,7 +112,9 @@
      !request.includes("*") &&
      !request.endsWith("/")
   ) {
      const target = /** @type {{[k: string]: MappingValue}} */ (field)[request];
      const target = /** @type {{ [k: string]: MappingValue }} */ (field)[
         request
      ];
      return [target, "", false, false, request];
   }
@@ -157,7 +159,9 @@
   if (bestMatch === "") return null;
   const target = /** @type {{[k: string]: MappingValue}} */ (field)[bestMatch];
   const target =
      /** @type {{ [k: string]: MappingValue }} */
      (field)[bestMatch];
   const isSubpathMapping = bestMatch.endsWith("/");
   const isPattern = bestMatch.includes("*");