Skip to content

Commit e21c112

Browse files
committed
Missed the function
1 parent ab2a58c commit e21c112

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/core/src/v3/build/runtime.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,12 @@ export function execOptionsForRuntime(runtime: BuildRuntime, options: ExecOption
6363
}
6464
}
6565
}
66+
67+
// Detect if we are using node v18, since we don't support lower than 18, and we only need to enable the flag for v18
68+
function nodeRuntimeNeedsGlobalWebCryptoFlag(): boolean {
69+
try {
70+
return process.versions.node.startsWith("18.");
71+
} catch {
72+
return false;
73+
}
74+
}

0 commit comments

Comments
 (0)