@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/build.js CHANGED
@@ -204899,8 +204899,9 @@ var ssrDirty = false, lastSelector = "angular-page", isRecord6 = (value) => type
204899
204899
  const sanitizer = getSsrSanitizer(deps);
204900
204900
  const providers = buildProviders(deps, sanitizer, maybeProps, tokenMap);
204901
204901
  const rawHtml = await renderAngularApp(deps, PageComponent, providers, htmlString);
204902
- const htmlWithLoweredIslands = hasIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
204903
- const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, indexPath, maybeProps), { hasIslands });
204902
+ const shouldProcessIslands = hasIslands || rawHtml.includes("<absolute-island");
204903
+ const htmlWithLoweredIslands = shouldProcessIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
204904
+ const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, indexPath, maybeProps), { hasIslands: shouldProcessIslands });
204904
204905
  return new Response(html, {
204905
204906
  headers: { "Content-Type": "text/html" }
204906
204907
  });
@@ -208005,5 +208006,5 @@ export {
208005
208006
  build
208006
208007
  };
208007
208008
 
208008
- //# debugId=973E7AFC140914E964756E2164756E21
208009
+ //# debugId=C9D80972CB3D466064756E2164756E21
208009
208010
  //# sourceMappingURL=build.js.map