tauri v2.0 with svelte
Trying to create new window that connected to svelte file like the main window does with +page.svelte.
I found how to create new window here, but there are no info how to connect it to file (like .html or in my case .svelte) https://v2.tauri.app/reference/javascript/api/namespacewindow/#window
While trying using code from there - I have errors (second screenshot)
Generally I want new window be like child window to main, so when I close the main for example - new window (child) closes too. But that's in future, just to describe what I need from beginning