Im currently using vite as just a bundler
the script runs on a page I don't control / don't want to alter
so to show a ui i have to open a new tab like this
const w = window.open("", "_blank")
w.document.body.innerHTML = "a vanilla.js ui"
now suppose i want to make this new page a vite+react app
I could set up an entirely new project and import the ui bundle somehow
import my_ui from "gui/dist/index.html?raw"
const w = window.open("", "_blank")
w.document.body.parentElement.outerHTML = my_ui
but since I dont even have a backend, getting the scripts / assets inlined into the ui bundle seems tricky
https://github.com/richardtallent/vite-plugin-singlefile?tab=readme-ov-file#caveats
and im guessing the devex wont be pleasant either, probably breaking hot reload
So I guess my question is if there's any alternative to setting up a separate vite project