Skip to content

Commit

Permalink
perf: use jiti disk cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 6, 2022
1 parent 84e3f9f commit bb4a710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const GIT_PREFIXES = ['github:', 'gitlab:', 'bitbucket:', 'https://']
// https://github.com/dword-design/package-name-regex
const NPM_PACKAGE_RE = /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/

const jiti = createJiti(null, { cache: false, interopDefault: true, requireCache: false, esmResolve: true })
const jiti = createJiti(null, { interopDefault: true, requireCache: false, esmResolve: true })

async function resolveConfig (source: string, opts: LoadConfigOptions): Promise<ResolvedConfig> {
// Custom user resolver
Expand Down

0 comments on commit bb4a710

Please sign in to comment.