feat: improve dom application method

This commit is contained in:
SethBurkart123
2025-03-27 23:45:04 +11:00
parent f0c5b1dace
commit 5413286f56
6 changed files with 8 additions and 109 deletions
+5 -2
View File
@@ -1,7 +1,6 @@
//import styles from "./index.css?inline"
import { mount } from "svelte"
import type { ComponentType } from "svelte"
import './index.css'
import style from './index.css?inline'
export default function renderSvelte(
Component: ComponentType | any,
@@ -16,5 +15,9 @@ export default function renderSvelte(
},
})
const styleElement = document.createElement('style')
styleElement.textContent = style
mountPoint.appendChild(styleElement)
return app
}