Skip to content

Commit

Permalink
fix: don't append --no-experimental-fetch multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
apaleslimghost committed Dec 6, 2024
1 parent 224523b commit edf6443
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/cli/src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit edf6443

Please sign in to comment.