fix: resolve vite dynamic import warning

This commit is contained in:
2026-05-21 23:02:14 +02:00
parent 6fdb2376a1
commit 4e33ec3451
+1 -2
View File
@@ -337,8 +337,7 @@ export const loadTheme = async (theme: Theme, themeContainer: HTMLElement, volum
active_custom_theme.set(theme);
themeContainer.innerHTML = '';
if (theme.scriptUrl.length > 0) {
/* @vite-ignore */
const themeScript = await import(theme.scriptUrl);
const themeScript = await import(/* @vite-ignore */ theme.scriptUrl);
themeScript.mountTheme(themeContainer, { assets: theme.assets });
}
setGlobalVolume(volume);