mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
perf(nuxt): don't tree-shake useServerHead
in dev (#26421)
This commit is contained in:
parent
8c3159f4ba
commit
57b8d977b9
@ -29,9 +29,11 @@ export default defineNuxtModule({
|
||||
}
|
||||
|
||||
// allow @unhead/vue server composables to be tree-shaken from the client bundle
|
||||
nuxt.options.optimization.treeShake.composables.client['@unhead/vue'] = [
|
||||
'useServerHead', 'useServerSeoMeta', 'useServerHeadSafe'
|
||||
]
|
||||
if (!nuxt.options.dev) {
|
||||
nuxt.options.optimization.treeShake.composables.client['@unhead/vue'] = [
|
||||
'useServerHead', 'useServerSeoMeta', 'useServerHeadSafe'
|
||||
]
|
||||
}
|
||||
|
||||
addImportsSources({
|
||||
from: '@unhead/vue',
|
||||
|
Loading…
Reference in New Issue
Block a user