thread-stream
thread-stream copied to clipboard
windows pathing fix
import will not universally work on all node.js use-cases like pkg for example. I made fix to handover the module loading to require in node.js for better compatibility.
when removing the 'file://' from path, in windows, it will leave a leading '/' in the path that will make the worker module loading fail.
@simoneb could you check this on Windows?
@simoneb could you check this on Windows?
happy to check once there's a proper implementation and tests in this PR