diff --git a/src/x-components/plugin.options.ts b/src/x-components/plugin.options.ts index 77bcb27f..d4b2522f 100644 --- a/src/x-components/plugin.options.ts +++ b/src/x-components/plugin.options.ts @@ -60,6 +60,7 @@ function getDomElement({ isolate }: SnippetConfig): Element { if (isolate || process.env.NODE_ENV === 'production') { const container = document.createElement('div'); + container.classList.add('x-root-container'); const shadowRoot = container.attachShadow({ mode: 'open' }); shadowRoot.appendChild(domElement); document.body.appendChild(container);