As mentioned in the following issue for electron, support for native modules that are not NAPI or Context Aware are going to be dropped. Electron Issue
This will result in applications that use epoll/onoff being broken after Electron 12.
Applications based on electron 10+ require the flag app.allowRendererProcessReuse = false in the Electron main.js.