diff --git a/src/internal/Component.js b/src/internal/Component.js index 43c0c62ca9..0679b63023 100644 --- a/src/internal/Component.js +++ b/src/internal/Component.js @@ -115,7 +115,7 @@ export function init(component, options, instance, create_fragment, not_equal, p export let SvelteElement; if (typeof HTMLElement !== 'undefined') { SvelteElement = class extends HTMLElement { - constructor({ use_shadow_dom = true } = {}) { + constructor({ use_shadow_dom = true } = { use_shadow_dom: true }) { super(); if (use_shadow_dom) { this.attachShadow({ mode: 'open' });