I am importing HTML for customElements in my JavaScript using:
fetch(new URL('template.html', import.meta.url).then(...);
Unfortunately, this is somehow being transformed to a URL for my local directory.
When importing, it will need to set something like
import.meta = {url: theUrlForScriptBeingImported};