andywer / threads-plugin

📦 Makes your threads.js code build with webpack out of the box.
Apache License 2.0
28 stars 6 forks source link

Inline web worker #18

Closed NicolasRannou closed 4 years ago

NicolasRannou commented 4 years ago

Hi,

Is there any option to inline web workers?

Can't seem to find how to do so anywhere.

Thanks for the awesome library!

andywer commented 4 years ago

Right now this is not possible, but there is a discussion about it at andywer/threads.js#211. It's not overly active right now, but you are of course welcome to participate! 🙂

NicolasRannou commented 4 years ago

Thank you I'll investigate it a little bit more.

I'd like to develop a JS library that leverages web-workers and I must ensure it is easy to serve it or for customers to use (i.e. no worker-specific setup) if the web worker is not inlined!