chore: broken tests

This commit is contained in:
harlan 2025-01-21 20:38:51 +11:00
parent 7f069dc811
commit efb8a71393
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,10 @@ export default defineNuxtModule<NuxtOptions['unhead']>({
},
async setup (options, nuxt) {
const runtimeDir = resolve(distDir, 'head/runtime')
// Transpile @unhead/vue
nuxt.options.build.transpile.push('@unhead/vue')
const isNuxtV4 = nuxt.options.future?.compatibilityVersion === 4
// Register components
const componentsPath = resolve(runtimeDir, 'components')

View File

@ -122,7 +122,7 @@ export async function buildServer (ctx: ViteBuildContext) {
if (Array.isArray(serverConfig.ssr!.external)) {
serverConfig.ssr!.external.push(
// explicit dependencies we use in our ssr renderer - these can be inlined (if necessary) in the nitro build
'unhead', 'unctx', 'h3', 'devalue', '@nuxt/devalue', 'radix3', 'rou3', 'unstorage', 'hookable',
'unhead', '@unhead/vue', 'unctx', 'h3', 'devalue', '@nuxt/devalue', 'radix3', 'rou3', 'unstorage', 'hookable',
// ensure we only have one version of vue if nitro is going to inline anyway
...((ctx.nuxt as any)._nitro as Nitro).options.inlineDynamicImports ? ['vue', '@vue/server-renderer', '@unhead/vue'] : [],
// dependencies we might share with nitro - these can be inlined (if necessary) in the nitro build