Skip to content

Commit baa0361

Browse files
author
farfromrefug
committed
fix: call initializeDom in dom file because some users might not use top level index
1 parent 184475d commit baa0361

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/dom/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ function initializeLogger() {
8787
});
8888
}
8989

90+
let initializedDom = false;
9091
export function initializeDom() {
92+
if ( initializedDom) {
93+
return;
94+
}
95+
initializedDom = true;
9196
initializeLogger();
9297
if (typeof __UI_USE_EXTERNAL_RENDERER__ != "undefined" && __UI_USE_EXTERNAL_RENDERER__) {
9398
} else {
@@ -96,3 +101,4 @@ export function initializeDom() {
96101
registerSvelteElements();
97102
return installGlobalShims();
98103
}
104+
initializeDom();

0 commit comments

Comments
 (0)