Skip to content

Commit

Permalink
Fix custom config loading in Standalone CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Dec 18, 2023
1 parent cc94c76 commit 9596c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/load-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ let jiti: ReturnType<typeof jitiFactory> | null = null
// @internal
// This WILL be removed in some future release
// If you rely on this your stuff WILL break
export function useCustomJiti(_jiti: ReturnType<typeof jitiFactory>) {
jiti = _jiti
export function useCustomJiti(_jiti: () => ReturnType<typeof jitiFactory>) {
jiti = _jiti()
}

function lazyJiti() {
Expand Down

0 comments on commit 9596c02

Please sign in to comment.