Closed alexanderniebuhr closed 3 years ago
I am thinking maybe it's better to make sure we have only have one instance of runtime-dom at a time
one instance of runtime-dom at a time
how would you check it?
UPDATE: nevermind, i just can check it myself
if script is injected in multiple components (needed for HMR in svelte) it would generate multiple style tags, since it is running multiple times. so check to if it exists, otherwise add it