From ade0266e2a2a3f04b8bea071a4ec94375098dbe7 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Wed, 15 Nov 2023 14:31:14 +0100 Subject: [PATCH] chore: add comment about extracting --- packages/build/src/plugins/spawn.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/build/src/plugins/spawn.ts b/packages/build/src/plugins/spawn.ts index 6aa4396ac1..516fceea98 100644 --- a/packages/build/src/plugins/spawn.ts +++ b/packages/build/src/plugins/spawn.ts @@ -44,6 +44,7 @@ const tStartPlugins = async function ({ pluginsOptions, buildDir, childEnv, logs export const startPlugins = measureDuration(tStartPlugins, 'start_plugins') const startPlugin = async function ({ pluginDir, nodePath, buildDir, childEnv, systemLogFile, pluginPackageJson }) { + // todo: extract this into a function that's shared with the feature flag impl const isTrustedPlugin = pluginPackageJson?.name?.startsWith('@netlify/') const childProcess = execaNode(CHILD_MAIN_FILE, [], {