diff --git a/core/cli/src/fetch.ts b/core/cli/src/fetch.ts index 3b0039036..30937ae2a 100644 --- a/core/cli/src/fetch.ts +++ b/core/cli/src/fetch.ts @@ -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') }