Update packages/nuxt/src/head/plugins/unhead-imports.ts

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
Harlan Wilton 2025-02-14 18:08:14 +11:00 committed by GitHub
parent f30ad4ce53
commit ebb83add81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ export const UnheadImportsPlugin = (options: UnheadImportsPluginOptions) => crea
if (importsFromUnhead.length) {
// warn if user has imported from @unhead/vue themselves
if (!id.includes('node_modules')) {
logger.warn(`You are importing from \`${UnheadVue}\` in \`./${relative(options.rootDir, id)}\`. Please import from \`#app\` instead for full type safety.`)
logger.warn(`You are importing from \`${UnheadVue}\` in \`./${relative(options.rootDir, id)}\`. Please import from \`#imports\` instead for full type safety.`)
}
s.prepend(`${genImport('#app/composables/head', toImports(importsFromUnhead))}\n`)
}