WXL
3 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/enhanced-resolve/lib/AliasFieldPlugin.js
@@ -16,7 +16,7 @@
module.exports = class AliasFieldPlugin {
   /**
    * @param {string | ResolveStepHook} source source
    * @param {string | Array<string>} field field
    * @param {string | string[]} field field
    * @param {string | ResolveStepHook} target target
    */
   constructor(source, field, target) {
@@ -54,11 +54,11 @@
               fieldData,
               innerRequest,
            )
               ? /** @type {{[Key in string]: JsonPrimitive}} */ (fieldData)[
               ? /** @type {{ [Key in string]: JsonPrimitive }} */ (fieldData)[
                     innerRequest
                  ]
               : innerRequest.startsWith("./")
                  ? /** @type {{[Key in string]: JsonPrimitive}} */ (fieldData)[
                  ? /** @type {{ [Key in string]: JsonPrimitive }} */ (fieldData)[
                        innerRequest.slice(2)
                     ]
                  : undefined;