diff --git a/packages/angular/ssr/src/utils/inline-critical-css.ts b/packages/angular/ssr/src/utils/inline-critical-css.ts index f79f065a8621..5a5eb011c20a 100644 --- a/packages/angular/ssr/src/utils/inline-critical-css.ts +++ b/packages/angular/ssr/src/utils/inline-critical-css.ts @@ -32,8 +32,7 @@ const CSP_MEDIA_ATTR = 'ngCspMedia'; * - Removes the event listener when all relevant `` tags have been processed. * - Uses event capturing (the `true` parameter) since load events do not bubble up the DOM. */ -const LINK_LOAD_SCRIPT_CONTENT = ` -(() => { +const LINK_LOAD_SCRIPT_CONTENT = /* @__PURE__ */ (() => `(() => { const CSP_MEDIA_ATTR = '${CSP_MEDIA_ATTR}'; const documentElement = document.documentElement; @@ -57,7 +56,7 @@ const LINK_LOAD_SCRIPT_CONTENT = ` }; documentElement.addEventListener('load', listener, true); -})();`; +})();`)(); /** Partial representation of an `HTMLElement`. */ interface PartialHTMLElement {