Skip to content

Commit 4f9f603

Browse files
committed
Fix error
1 parent 02faa15 commit 4f9f603

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/load-config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ function lazyJiti() {
3333

3434
export function loadConfig(path: string): Config {
3535
let config = (function () {
36+
if (!path) return {}
37+
3638
// Always use jiti for now. There is a a bug that occurs in Node v22.12+
3739
// where imported files return invalid results
3840
return lazyJiti()(path)

0 commit comments

Comments
 (0)