I want to read and parse a text file inside a window process. I use
fs.createReadStream for that. I parse it line by line, and I want to show the progress of this operation. While console logs appear gradually, the window UI is completely blocked until it finishes processing.
Can you recommend some workaround for this issue? Maybe web workers? Or should I put the whole processing into the main process and make it talk to my window somehow?
UPDATE: It seems like web workers don’t inherit
require method, so I can’t use Node’s modules, such as