Skip to content

Commit

Permalink
fix(provider): use resolvePath to resolve aliases as well (nuxt#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 27, 2021
1 parent 2d91d81 commit d610cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function resolveProvider (nuxt: any, key: string, input: InputProvider):

input.provider = BuiltInProviders.includes(input.provider)
? require.resolve('./runtime/providers/' + input.provider)
: nuxt.resolver.resolveModule(input.provider)
: nuxt.resolver.resolvePath(input.provider)

return <ImageModuleProvider> {
...input,
Expand Down

0 comments on commit d610cc1

Please sign in to comment.