mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 17:10:07 +00:00
Update packages/nuxt/src/head/plugins/unhead-imports.ts
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
f30ad4ce53
commit
ebb83add81
@ -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`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user