mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(html): prevent tsdown from stripping custom element registrations (#703)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ReactiveElement } from '@videojs/element';
|
||||
import { namedNodeMapToObject } from '@videojs/utils/dom';
|
||||
import { safeDefine } from '../safe-define';
|
||||
|
||||
function getTemplateHTML(_attrs: Record<string, string>) {
|
||||
return /*html*/ `
|
||||
@@ -24,7 +25,7 @@ export class BackgroundVideoSkinElement extends ReactiveElement {
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(BackgroundVideoSkinElement.tagName, BackgroundVideoSkinElement);
|
||||
safeDefine(BackgroundVideoSkinElement);
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
|
||||
Reference in New Issue
Block a user