diff --git a/packages/elements/src/create-custom-element.ts b/packages/elements/src/create-custom-element.ts index 34595baa34..ce70f3ae7a 100644 --- a/packages/elements/src/create-custom-element.ts +++ b/packages/elements/src/create-custom-element.ts @@ -131,7 +131,9 @@ export function createCustomElement
( const attributeToPropertyInputs = getDefaultAttributeToPropertyInputs(inputs); class NgElementImpl extends NgElement { - static readonly observedAttributes = Object.keys(attributeToPropertyInputs); + // Work around a bug in closure typed optimizations(b/79557487) where it is not honoring static + // field externs. So using quoted access to explicitly prevent renaming. + static readonly['observedAttributes'] = Object.keys(attributeToPropertyInputs); constructor(injector?: Injector) { super();