From 4f9f603e12b51cc53b8a09c7739b8f88c8eb87eb Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Tue, 17 Dec 2024 14:07:10 -0500 Subject: [PATCH] Fix error --- src/lib/load-config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/load-config.ts b/src/lib/load-config.ts index 7eab412ca09a..af518d9cc6b1 100644 --- a/src/lib/load-config.ts +++ b/src/lib/load-config.ts @@ -33,6 +33,8 @@ function lazyJiti() { export function loadConfig(path: string): Config { let config = (function () { + if (!path) return {} + // Always use jiti for now. There is a a bug that occurs in Node v22.12+ // where imported files return invalid results return lazyJiti()(path)