I'm creating a lit-element that has an external javascript dependency (npm module) that is not packaged as an es6 module. What is the recommended way of loading this dependency?
Should I just use a script tag in my index.html that references the cdn version of this module
//index.html
<script src="cdnToexternalJavascriptDependcy"></script>
but that would not encapsulate the dependency within the lit-element.
In Polymer, we can just use HTMLImports inside a html file and "import" it which would handle deduplication of dependencies.
For lit-element, what is the recommended way of encapsulating this "non-es6-module" dependency within my custom lit-element without using a bundler like webpack?