"Module not found" in Deno Complied Binary #465
-
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I guess web workers or blob URIs are not supported within compiled binaries. I need to check the documentation. Meanwhile, you can disable the usage of web workers by calling |
Beta Was this translation helpful? Give feedback.
-
Thanks it works galaxydo/deno-webui@aacd9ab |
Beta Was this translation helpful? Give feedback.
-
Actually, you might be able to use workers by relying on the EDIT: you will probably also need to call zip.configure({
workerScripts: {
deflate: ["dist/z-worker.js"],
inflate: ["dist/z-worker.js"]
}
}); |
Beta Was this translation helpful? Give feedback.
Actually, you might be able to use workers by relying on the
--include
switch, as documented here: https://docs.deno.com/runtime/manual/tools/compiler#workers. The filename to pass as parameter isdist/z-worker.js
.EDIT: you will probably also need to call
zip.configure
to configure the file path of the worker in zip.js as well. See below.