Skip to content

"Module not found" in Deno Complied Binary #465

Answered by gildas-lormeau
7flash asked this question in Q&A
Discussion options

You must be logged in to vote

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 is dist/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.

zip.configure({
  workerScripts: {
    deflate: ["dist/z-worker.js"],
    inflate: ["dist/z-worker.js"]
  }
});

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 7flash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #464 on November 24, 2023 09:51.