mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(kit): resolve aliases in plugin src (#6037)
This commit is contained in:
parent
45c2a6118f
commit
4d80c43d25
@ -2,6 +2,7 @@ import { normalize } from 'pathe'
|
||||
import type { NuxtPlugin, NuxtPluginTemplate } from '@nuxt/schema'
|
||||
import { useNuxt } from './context'
|
||||
import { addTemplate } from './template'
|
||||
import { resolveAlias } from './resolve'
|
||||
|
||||
/**
|
||||
* Normalize a nuxt plugin object
|
||||
@ -19,7 +20,7 @@ export function normalizePlugin (plugin: NuxtPlugin | string): NuxtPlugin {
|
||||
}
|
||||
|
||||
// Normalize full path to plugin
|
||||
plugin.src = normalize(plugin.src)
|
||||
plugin.src = normalize(resolveAlias(plugin.src))
|
||||
|
||||
// Normalize mode
|
||||
if (plugin.ssr) {
|
||||
|
Loading…
Reference in New Issue
Block a user