@absolutejs/absolute 0.19.0-beta.290 → 0.19.0-beta.291

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/index.js CHANGED
@@ -204949,8 +204949,9 @@ var ssrDirty2 = false, lastSelector = "angular-page", isRecord7 = (value) => typ
204949
204949
  const sanitizer = getSsrSanitizer(deps);
204950
204950
  const providers = buildProviders(deps, sanitizer, maybeProps, tokenMap);
204951
204951
  const rawHtml = await renderAngularApp(deps, PageComponent, providers, htmlString);
204952
- const htmlWithLoweredIslands = hasIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
204953
- const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, indexPath, maybeProps), { hasIslands });
204952
+ const shouldProcessIslands = hasIslands || rawHtml.includes("<absolute-island");
204953
+ const htmlWithLoweredIslands = shouldProcessIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
204954
+ const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, indexPath, maybeProps), { hasIslands: shouldProcessIslands });
204954
204955
  return new Response(html, {
204955
204956
  headers: { "Content-Type": "text/html" }
204956
204957
  });
@@ -215450,5 +215451,5 @@ export {
215450
215451
  ANGULAR_INIT_TIMEOUT_MS
215451
215452
  };
215452
215453
 
215453
- //# debugId=C274A1FF9E2EDC4064756E2164756E21
215454
+ //# debugId=6A6938F7FEBE179964756E2164756E21
215454
215455
  //# sourceMappingURL=index.js.map