Skip to content

Commit a797237

Browse files
authored
fix: use process.platform for Deno πŸ₯— (#7913)
* fix: use process.platform for Deno πŸ₯— * chore: add changeset 🍟 * chore: change workers param * Revert "chore: change workers param" This reverts commit 26a30fe. * chore: update bitter-loops-train.md
1 parent 9fa4d26 commit a797237

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@builder.io/qwik': patch
3+
---
4+
5+
FIX: The Deno integration now builds successfully with version v2.4.3 and above.

β€Žpackages/qwik/src/optimizer/src/platform.tsβ€Ž

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,9 @@ export async function getSystem() {
6262
}
6363
}
6464

65-
if (sysEnv === 'node' || sysEnv === 'bun') {
66-
sys.path = await sys.dynamicImport('node:path');
67-
sys.cwd = () => process.cwd();
68-
sys.os = process.platform;
69-
} else if (sysEnv === 'deno') {
70-
sys.path = await sys.dynamicImport('node:path');
71-
sys.cwd = (): string => Deno.cwd();
72-
sys.os = Deno.platform();
73-
}
65+
sys.path = await sys.dynamicImport('node:path');
66+
sys.cwd = () => process.cwd();
67+
sys.os = process.platform;
7468

7569
return sys;
7670
}

0 commit comments

Comments
Β (0)