rollup-plugin-off-main-thread icon indicating copy to clipboard operation
rollup-plugin-off-main-thread copied to clipboard

`SharedWorker` support?

Open jespertheend opened this issue 4 years ago • 1 comments

I'd like to make use of this plugin but I'm using a SharedWorker Not sure if SharedWorkers will need special treatment or if they can be taken care of with the existing logic.

jespertheend avatar Sep 20 '21 19:09 jespertheend

I just replaced all instances of new Worker with new SharedWorker in index.js and everything seems to be working as expected. Implementing this for real will be a bit more difficult because it has to account for both Worker and SharedWorker at the same time. I might be able to do a PR if you like.

jespertheend avatar Sep 20 '21 21:09 jespertheend