parry icon indicating copy to clipboard operation
parry copied to clipboard

suggestion pass worker code as blob

Open shevernitskiy opened this issue 2 years ago • 2 comments

Did you investigate possibility to provide worker part as blob? Kinda:

new Worker(URL.createObjectURL(new Blob(workercode.toString()))

Potentially it could eliminate dependency on separate file for worker.

shevernitskiy avatar Mar 23 '23 19:03 shevernitskiy

Yeah, made this a long time ago but that was originally how I wanted it however deno did not support that back then.

eliassjogreen avatar Mar 23 '23 19:03 eliassjogreen

A contribution is welcome :D, otherwise I might only get to it far in the future :P.

eliassjogreen avatar Mar 23 '23 19:03 eliassjogreen