Currently, I'm using Webpack and Electron as the basis for Proton. However, these build methods are slow and can lead to a worse UX. So after some discussion on Discord, I've got a basic implementation strategy for switching to Tauri and Vite.
Plugins
a. Loading the plugins is going to involve a lot of change
b. Now plugins need to be bundled with something like Rollup so we don't have to worry about dependencies
c. Then, we can read the bundle in Rust and send it to Node. Using the NodeJS VM API, I'll be able to execute the code and grab it's variables. This also allows me to create some constants and put them in the environment.
Currently, I'm using Webpack and Electron as the basis for Proton. However, these build methods are slow and can lead to a worse UX. So after some discussion on Discord, I've got a basic implementation strategy for switching to Tauri and Vite.
First, Vite:
Now the elephant in the room, Tauri: