use @tag instead of @customElement for treeshaking

This commit is contained in:
Cory LaViska
2021-03-08 07:51:31 -05:00
parent c53634544a
commit a0ea729bb9
44 changed files with 133 additions and 142 deletions

View File

@@ -1,11 +1,12 @@
import { LitElement, customElement, property } from 'lit-element';
import { LitElement, property } from 'lit-element';
import { tag } from '../../internal/decorators';
import { formatBytes } from '../../internal/number';
/**
* @since 2.0
* @status stable
*/
@customElement('sl-format-bytes')
@tag('sl-format-bytes')
export class SlFormatBytes extends LitElement {
/** The number to format in bytes. */
@property({ type: Number }) value = 0;