Skip to content

Commit

Permalink
build(TS): remove decorator metadata
Browse files Browse the repository at this point in the history
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
  • Loading branch information
material-web-copybara authored and copybara-github committed Apr 13, 2023
1 parent 212601d commit 09e17eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions navigationtab/lib/navigation-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"declaration": true,
"declarationMap": false,
"downlevelIteration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"module": "es2015",
Expand Down

0 comments on commit 09e17eb

Please sign in to comment.