@uniweb/runtime 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ssr.js CHANGED
@@ -701,7 +701,7 @@ function initPrerender(content, foundation, extensionsOrOptions, maybeOptions) {
701
701
  async function prefetchIcons(siteContent, uniweb, onProgress = () => {
702
702
  }) {
703
703
  const icons = siteContent.icons?.used || [];
704
- if (icons.length === 0) return;
704
+ if (icons.length === 0) return [];
705
705
  const cdnBase = siteContent.config?.icons?.base || DEFAULT_ICON_BASE;
706
706
  onProgress(`Fetching ${icons.length} icons for SSR...`);
707
707
  const results = await Promise.allSettled(
@@ -727,6 +727,7 @@ async function prefetchIcons(siteContent, uniweb, onProgress = () => {
727
727
  if (uniweb.iconCache.size > 0) {
728
728
  siteContent._iconCache = Object.fromEntries(uniweb.iconCache);
729
729
  }
730
+ return failedRefs;
730
731
  }
731
732
  function classifyRenderError(err) {
732
733
  const msg = err.message || "";