comlink-loader icon indicating copy to clipboard operation
comlink-loader copied to clipboard

Node Support

Open Azarattum opened this issue 5 years ago • 0 comments

It would be really great to add node support to this loader.

For example, respecting environment target the loader could change behavior to add a few extra lines. The original Comlink library already supports this. It would be nice to have it in the loader as well.

Or maybe, is there a workaround? Is there a way to make comlink-loader to work with node’s worker threads without modifying loader’s source code? I tried to add another loader on top, but it doesn’t look like a great idea. Any suggestions?

Azarattum avatar Jun 25 '20 13:06 Azarattum