fix: crxjs plugin issues

This commit is contained in:
SethBurkart123
2025-03-26 17:00:58 +11:00
parent 68159ddd0e
commit f2b594a13b
9 changed files with 119 additions and 55 deletions
+2 -6
View File
@@ -1,6 +1,7 @@
import styles from "./index.css?inline"
//import styles from "./index.css?inline"
import { mount } from "svelte"
import type { ComponentType } from "svelte"
import './index.css'
export default function renderSvelte(
Component: ComponentType | any,
@@ -15,10 +16,5 @@ export default function renderSvelte(
},
})
const style = document.createElement("style")
style.setAttribute("type", "text/css")
style.innerHTML = styles
mountPoint.appendChild(style)
return app
}