mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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.
This commit is contained in:
parent
7cd474d1d6
commit
e8cfa44b10
1 changed files with 3 additions and 0 deletions
|
|
@ -41,3 +41,6 @@ export const setCookieConsent = (state: 'denied' | 'granted'): void => {
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
// This fixes the RollupError: Exported variable "global" is not defined.
|
||||
export {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue