From e8cfa44b105d51ee74815cc2eebf724fef98fd8c Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Fri, 13 Mar 2026 07:19:38 +0000 Subject: [PATCH] refactor: ensure modules with 'declare global' are correctly handled by Rollup Explicitly adding an `export {}` to modules containing declare global fixes an issue where Rollup would incorrectly claim that the global variable is not defined in the emitted .d.ts files. Needed to land the latest rules_angular. --- adev/shared-docs/utils/analytics.utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adev/shared-docs/utils/analytics.utils.ts b/adev/shared-docs/utils/analytics.utils.ts index 8f53b58069d..12a4f284a93 100644 --- a/adev/shared-docs/utils/analytics.utils.ts +++ b/adev/shared-docs/utils/analytics.utils.ts @@ -41,3 +41,6 @@ export const setCookieConsent = (state: 'denied' | 'granted'): void => { } } }; + +// This fixes the RollupError: Exported variable "global" is not defined. +export {};