Skip to content

Commit

Permalink
feat: use native esm resolution where possible (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 4, 2022
1 parent b675ca1 commit 9744621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader.ts
Expand Up @@ -156,7 +156,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 })
const jiti = createJiti(null, { cache: false, interopDefault: true, requireCache: false, esmResolve: true })

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

0 comments on commit 9744621

Please sign in to comment.