Skip to content

Commit d9a981c

Browse files
committed
fix: resolve module aliases
1 parent 170d490 commit d9a981c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kit/src/module/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ async function callModule (nuxtModule: NuxtModule<any, Partial<any>, false>, met
342342
}
343343

344344
nuxt.options._installedModules ||= []
345-
entryPath ||= typeof moduleToInstall === 'string' ? moduleToInstall : undefined
345+
entryPath ||= typeof moduleToInstall === 'string' ? resolveAlias(moduleToInstall, nuxt.options.alias) : undefined
346346

347347
if (typeof moduleToInstall === 'string' && entryPath !== moduleToInstall) {
348348
buildTimeModuleMeta.rawPath = moduleToInstall

0 commit comments

Comments
 (0)