single-spa / import-map-overrides

A browser and NodeJS javascript library for overriding import maps
MIT License
341 stars 47 forks source link

When parsing an empty script tag of type importmap the parser throws an error. Is this OK? #98

Open robmosca opened 1 year ago

robmosca commented 1 year ago

When parsing an element like:

<script type="importmap"></script>

the parser will throw an error here.

Is this the expected behaviour? I would expect the page not be broken by such an element, but I am not sure. I checked the importmap specs and couldn't find anything definitive on this.