Skip to content

Commit

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

0 comments on commit 4f9f603

Please sign in to comment.