From edf6443e2a07f07c325a3120ded600848d770fda Mon Sep 17 00:00:00 2001 From: Kara Brightwell Date: Fri, 6 Dec 2024 17:52:52 +0000 Subject: [PATCH] fix: don't append --no-experimental-fetch multiple times --- core/cli/src/tasks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/cli/src/tasks.ts b/core/cli/src/tasks.ts index 8b014c90b..a9d08cdd8 100644 --- a/core/cli/src/tasks.ts +++ b/core/cli/src/tasks.ts @@ -65,7 +65,10 @@ export async function runTasksFromConfig( await runInit(logger, config) await checkInstall(logger, config) - if (shouldDisableNativeFetch(config.pluginOptions['app root'].options)) { + if ( + shouldDisableNativeFetch(config.pluginOptions['app root'].options) && + !process.execArgv.includes('--no-experimental-fetch') + ) { process.execArgv.push('--no-experimental-fetch') }