Skip to content

Commit

Permalink
fix: do not inject #head auto imports when meta: false (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
wattanx authored Nov 18, 2023
1 parent 9927869 commit ef9b599
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions packages/bridge/src/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ export default defineNuxtModule({
]
})

addImportsSources({
from: '#head',
imports: [
'useMeta'
]
})

// Add library-specific plugin
addPlugin({ src: resolve(runtimeDir, 'plugins/unhead') })
}
Expand Down
7 changes: 0 additions & 7 deletions packages/bridge/src/imports/presets.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import { defineUnimportPreset, InlinePreset } from 'unimport'

export const commonPresets: InlinePreset[] = [
// #head
defineUnimportPreset({
from: '#head',
imports: [
'useMeta'
]
}),
// vue-demi (mocked)
defineUnimportPreset({
from: '#app/app',
Expand Down

0 comments on commit ef9b599

Please sign in to comment.