Open santilland opened 2 months ago
Relevant discussions of how/if this can/should be done:
https://github.com/lit/lit-element/issues/207 https://github.com/storybookjs/storybook/tree/master/app/web-components#setup-page-reload-via-hmr
Need to research a bit more on the pros/cons of this...
Looking at how other libraries handle this, one example is pharos letting the user define/register the components: https://github.com/ithaka/pharos/blob/develop/packages/pharos/README.md#registering-components
With migration to js+jsdoc from typescript we can now add a check when registering component so that no double registration attempt happens when importing elements multiple times. eox-map needs to be migrated, but this could be done for all other elements