resolveToResolution(req) {
          const parentNames = req.parentNames,
            pattern = req.pattern

          if (!parentNames || this.flat) {
            return req
          }

          const resolution = this.resolutionMap.find(pattern, parentNames)

          if (resolution) {
            const resolutionManifest = this.getResolvedPattern(resolution)

            if (resolutionManifest) {
              invariant(
                resolutionManifest._reference,
                'resolutions should have a resolved reference'
              )
              resolutionManifest._reference.patterns.push(pattern)
              this.addPattern(pattern, resolutionManifest)
              const lockManifest = this.lockfile.getLocked(pattern)
              if (
                (0, (_resolutionMap2 || _load_resolutionMap2()).shouldUpdateLockfile)(
                  lockManifest,
                  resolutionManifest._reference
                )
              ) {
                this.lockfile.removePattern(pattern)
              }
            } else {
              this.resolutionMap.addToDelayQueue(req)
            }
            return null
          }

          return req
        }
Lazy load `request` since it is exceptionally expensive to load and is
often not needed at all.