From fc3e3ab37e3433b7533de52eccfc7ee1f2d6445d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 24 Jun 2023 11:48:54 -0300 Subject: infra: don't whine about newly created dependency files --- src/content/dependencies/index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js index f7a0a659..36cd27fc 100644 --- a/src/content/dependencies/index.js +++ b/src/content/dependencies/index.js @@ -167,6 +167,13 @@ export function watchContentDependencies({ break main; } + // Just skip newly created files. They'll be processed again when + // written. + if (spec === undefined) { + contentDependencies[functionName] = null; + return; + } + let fn; try { fn = processFunctionSpec(functionName, spec); -- cgit 1.3.0-6-gf8a5