mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 13:00:36 -05: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
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ class NodeWorker extends EventEmitter {
|
||||||
StringPrototypeToString(specifier),
|
StringPrototypeToString(specifier),
|
||||||
".mjs",
|
".mjs",
|
||||||
)) ||
|
)) ||
|
||||||
(pkg && pkg.exists && pkg.typ == "module")
|
(pkg && pkg.exists && pkg.typ !== "module")
|
||||||
) {
|
) {
|
||||||
const cwdFileUrl = toFileUrl(Deno.cwd());
|
const cwdFileUrl = toFileUrl(Deno.cwd());
|
||||||
specifier =
|
specifier =
|
||||||
|
|
Loading…
Add table
Reference in a new issue