diff --git a/templates/singleElement.js b/templates/singleElement.js index 8e44dc3..d6491fe 100644 --- a/templates/singleElement.js +++ b/templates/singleElement.js @@ -1,3 +1,4 @@ +(function(){ /** * The template that is used for the shadow root for every copy of your element, * which houses the styles and layout for the element. @@ -68,3 +69,4 @@ class /* {className} */ extends HTMLElement { } customElements.define("/* {tagName} */", /* {className} */); +})();