Skip to content

Commit

Permalink
fix: correct logic for shouldDisableNativeFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
apaleslimghost committed Dec 6, 2024
1 parent c84315e commit 224523b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/cli/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,5 @@ export const shouldDisableNativeFetch = (options: RootOptions): boolean => {
// disable Node 18's native fetch if the Node runtime supports it (older
// runtimes don't support the flag, implying they also don't use native
// fetch) and the user hasn't opted out of the behaviour
return (
options.allowNativeFetch &&
process.allowedNodeEnvironmentFlags.has('--no-experimental-fetch')
)
return !options.allowNativeFetch && process.allowedNodeEnvironmentFlags.has('--no-experimental-fetch')
}

0 comments on commit 224523b

Please sign in to comment.