Carere
Carereโ€ข16mo ago

Can I use Workers in an executable ?

Everything is in the questions, on the doc site, it is mention that we can't use Workers when creating executable, but then on the page executable, it says that we need to use the --include option in order to add the worker code to the executable. So what is the state of the Workers inside an executable with Deno actually ?
3 Replies
Andreu Botella (they/them)
it used to be that you couldn't use workers, but now you can if you pass the --include flag with the worker scripts you will use I guess the documentation is stale on that
Carere
CarereOPโ€ข16mo ago
yeah I did the test and it worked so perfect, it was the only thing that prevent me to go the Deno path. And Bun is way too eraly stage, it's clearly not a 1.0 ๐Ÿ˜… So thx for your answer ๐Ÿ˜‰
Leokuma
Leokumaโ€ข16mo ago
I opened a PR to update the docs: https://github.com/denoland/deno-docs/pull/141
GitHub
update: workers now work in compiled executables by Leokuma ยท Pull ...
https://discord.com/channels/684898665143206084/1151939558548709486/1151943237339197450 Andreu Botella (they/them) โ€” 14/09/2023 15:11 it used to be that you couldn't use workers, but now you c...

Did you find this page helpful?