From 37902d8df067b052599e7a081e1d3551dc19986c Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Tue, 17 Dec 2024 08:51:31 -0500 Subject: [PATCH] Always use Jiti to load config files --- src/lib/load-config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/load-config.ts b/src/lib/load-config.ts index eaff8e95b410..7eab412ca09a 100644 --- a/src/lib/load-config.ts +++ b/src/lib/load-config.ts @@ -33,6 +33,10 @@ function lazyJiti() { export function loadConfig(path: string): Config { let config = (function () { + // 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) + // Always use jiti for ESM or TS files if ( path &&