diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index ae80ae38c1..2d5795eccb 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -133,7 +133,7 @@ export function init(component, options, instance, create_fragment, not_equal, p } export let SvelteElement; -if (typeof HTMLElement !== 'undefined') { +if (typeof HTMLElement === 'function') { SvelteElement = class extends HTMLElement { $$: T$$; constructor() {