mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +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
|
// allow @unhead/vue server composables to be tree-shaken from the client bundle
|
||||||
nuxt.options.optimization.treeShake.composables.client['@unhead/vue'] = [
|
if (!nuxt.options.dev) {
|
||||||
'useServerHead', 'useServerSeoMeta', 'useServerHeadSafe'
|
nuxt.options.optimization.treeShake.composables.client['@unhead/vue'] = [
|
||||||
]
|
'useServerHead', 'useServerSeoMeta', 'useServerHeadSafe'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
addImportsSources({
|
addImportsSources({
|
||||||
from: '@unhead/vue',
|
from: '@unhead/vue',
|
||||||
|
Loading…
Reference in New Issue
Block a user