NativeScript/worker-loader

Adding Support for Comlink library

limitless-brain opened this issue · 0 comments

Comlink makes WebWorkers enjoyable and easy to use, but when I tried to use it's not working.
I tried to trace it down, and I found for some reason the function expose isn't running correctly. The function addEventListener isn’t found, and I got an error message with the following content.

TypeError: ep.addEventListener is not a function

NativeScript: 7.3.0
Android Device: Samsung A52 Android 11
Comlink: 4.3.1