Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
thecrypticace committed Dec 17, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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)

0 comments on commit 4f9f603

Please sign in to comment.