Skip to content

Commit

Permalink
Always use Jiti to load config files
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Dec 17, 2024
1 parent f875ab9 commit 37902d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/load-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 37902d8

Please sign in to comment.