Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(kit): resolve aliases in plugin src
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jul 21, 2022
1 parent b4b9804 commit 86923dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kit/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 86923dc

Please sign in to comment.