WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
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;