fix: also avoid inferring `bun` and `deno` from runtime · nitrojs/nitro@09d6aa6

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 09d6aa6

committed

fix: also avoid inferring bun and deno from runtime

1 parent ae02f3b commit 09d6aa6

File tree

1 file changed

+

0

-

6

lines changed

1 file changed

+

0

-

6

lines changed

Lines changed: 0 additions & 6 deletions

Original file line numberDiff line numberDiff line change

@@ -24,12 +24,6 @@ function _resolveExportConditions(

2424

conditions.push("node");

2525

}

2626
27-

if ("Bun" in globalThis) {

28-

conditions.push("bun");

29-

} else if ("Deno" in globalThis) {

30-

conditions.push("deno");

31-

}

32-
3327

const negated = new Set(userConditions.filter((c) => c.startsWith("!")).map((c) => c.slice(1)));

3428
3529

return [...new Set(conditions)].filter((c) => !negated.has(c));

0 commit comments

Comments

 (0)