Skip to content

Commit ab2a58c

Browse files
committed
Only add flag when on node 18
1 parent c6da669 commit ab2a58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function execOptionsForRuntime(runtime: BuildRuntime, options: ExecOption
5252
importEntryPoint,
5353
conditions,
5454
process.env.NODE_OPTIONS,
55-
"--experimental-global-webcrypto",
55+
nodeRuntimeNeedsGlobalWebCryptoFlag() ? "--experimental-global-webcrypto" : undefined,
5656
]
5757
.filter(Boolean)
5858
.flat()

0 commit comments

Comments
 (0)