mirror of
https://github.com/denoland/deno
synced 2024-07-02 16:31:02 +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),
|
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…
Reference in New Issue
Block a user