cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos

Allow web workers in pcf using webpack

Who doesn't want web workers? This feature would add a whole new realm of possibility in terms of performance by offloading process intensive tasks from the main thread.

 

Here are some possible packages that can help with this idea.

https://github.com/webpack-contrib/worker-loader

https://github.com/borisirota/webworkify-webpack

https://github.com/GoogleChromeLabs/worker-plugin

 

I am also going to work on this on my end and hopefully be able to propose a solution that the pcf team can use.

 

PCF Hacks 4 life! 🤣🤣🤣

Status: New
Comments
Advocate IV

As promised, I have a "solution" that would allow webworkers in pcf, it turned to be very simple.

 

I have documented it in my repository.

https://github.com/rexkenley/pcf-react/blob/master/README.md