Closed daKmoR closed 3 years ago
Right now if you load the polyfill multiple times from different locations. (e.g. nested node_modules) it would override each other.
Adding something like this
if (!window.__scopedCustomElementRegistryLoadedPolyfill) { window.__scopedCustomElementRegistryLoadedPolyfill = true;
at the top should be good enough to make sure the polyfill does not fail in these cases.
What do you think?
Description
Right now if you load the polyfill multiple times from different locations. (e.g. nested node_modules) it would override each other.
Adding something like this
at the top should be good enough to make sure the polyfill does not fail in these cases.
What do you think?