$requireOptions->preload,
);
$importMapEntries[$requireOptions->packageName
] =
$newEntry;
$addedEntries[] =
$newEntry;
unset($packagesToRequire[$key]);
} if (!
$packagesToRequire) { return $addedEntries;
} $resolvedPackages =
$this->resolver->
resolvePackages($packagesToRequire);
foreach ($resolvedPackages as $resolvedPackage) { $importName =
$resolvedPackage->requireOptions->importName ?:
$resolvedPackage->requireOptions->packageName;
$path = null;
if ($resolvedPackage->requireOptions->download
) { if (null ===
$resolvedPackage->content
) { throw new \
LogicException(sprintf('The contents of package "%s" were not downloaded.',
$resolvedPackage->requireOptions->packageName
));
} $path =
$this->
downloadPackage($importName,
$resolvedPackage->content
);
}