mirror of
https://github.com/denoland/deno
synced 2024-06-30 23:46:19 +00:00
fix(ext/node): worker_threads load as commonjs if pkg.type is not module
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
This commit is contained in:
parent
9c5ddf7c69
commit
ef6e0cc058
|
@ -177,7 +177,7 @@ class NodeWorker extends EventEmitter {
|
|||
StringPrototypeToString(specifier),
|
||||
".mjs",
|
||||
)) ||
|
||||
(pkg && pkg.exists && pkg.typ == "module")
|
||||
(pkg && pkg.exists && pkg.typ !== "module")
|
||||
) {
|
||||
const cwdFileUrl = toFileUrl(Deno.cwd());
|
||||
specifier =
|
||||
|
|
Loading…
Reference in New Issue
Block a user