I have two Sveltekit apps.A. Is a normal website appB. Exists inside electron
I want A the normal Sveltekit website, to import B Sveltekit app running in electron.Why? so any changes I make to electron app automatically syncs to web app and I don't need to manually update src folders in A.
In order for Sveltekit to compile correctly, it seems all files need to be in the src directory. I can place B, electron app, inside A, web apps src folder and it works. It compiles correctly when built and works great. However, On Localhost it takes 1 minute to spin up and I think its because localhost tries to load everything included in electron and that makes editing the website terrible and bloated with unnecessary files.I also tried syncing two folders in the operating system but on mac it seems impractical.
The performance suffers. Can I import a precompiled version of the electron app into the website through some server load function? Sveltekit and Vites backend system gets pretty hairy so any advice is greatly appreciated.