Ewok
worker with cjs code loaded from esm not working
--unstable-detect-cjs
doesn't help. Deno 2.1.2
In my original project, the worker is in .cjs and imported from ESM but that doesn't seem to matter.
Only import("node:worker_threads")
works. But it is meant to support CJS. Also doesn't work without node:
which is not normal too but I assume both are related to one thing.3 replies