Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion pass worker code as blob #1

Open
shevernitskiy opened this issue Mar 23, 2023 · 2 comments · May be fixed by #2
Open

suggestion pass worker code as blob #1

shevernitskiy opened this issue Mar 23, 2023 · 2 comments · May be fixed by #2

Comments

@shevernitskiy
Copy link

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 shevernitskiy changed the title suggestion pass worker code is blob suggestion pass worker code as blob Mar 23, 2023
@eliassjogreen
Copy link
Member

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

@eliassjogreen
Copy link
Member

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

@shevernitskiy shevernitskiy linked a pull request Mar 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants