Hello. I am writing a multiplatform library which will be used by desktop and web applications also. I want to use Kotlin JS with electron or something similar and I want to access Filesystem apis via Node js exclusively for desktop version. So right now I am trying to find a way to achive this. I am thinking of 2 ways but dont know what to do technically.
First one is to use directly electron and its nodeIntegration feature but I couldn't use node apis via Kotlin. (Tried to run in electron window but getting 'fs' not found error and I don't have an idea how to configure Webpack)
Second one is to render the application in a local server and show it in electron but I dont know is it technically possible with Kotlin or not
What you guys recommend me to do?