From 09e17eb486a3796d91ce2b5f2fe6d449af620523 Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Thu, 13 Apr 2023 10:15:45 -0700 Subject: [PATCH] build(TS): remove decorator metadata This removes the types from being emitted in the resultant JS. We need to remove them because they break SSR because they will emit types such as `HTMLElement` into the JS. PiperOrigin-RevId: 524034517 --- navigationtab/lib/navigation-tab.ts | 1 + tsconfig.json | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/navigationtab/lib/navigation-tab.ts b/navigationtab/lib/navigation-tab.ts index a85a2c213d..a940cefb0b 100644 --- a/navigationtab/lib/navigation-tab.ts +++ b/navigationtab/lib/navigation-tab.ts @@ -6,6 +6,7 @@ import '../../badge/badge.js'; import '../../focus/focus-ring.js'; +import '../../ripple/ripple.js'; import {html, PropertyValues, TemplateResult} from 'lit'; import {property, query, state} from 'lit/decorators.js'; diff --git a/tsconfig.json b/tsconfig.json index ee8f33f4ac..2c07e8c23a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,6 @@ "declaration": true, "declarationMap": false, "downlevelIteration": true, - "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, "module": "es2015",