mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 14:45:15 +00:00
fix(nuxt): do not include <NuxtWelcome>
when building (#29956)
Co-authored-by: Julien Huang <julien.huang@outlook.fr>
This commit is contained in:
parent
4924e26329
commit
67456810be
@ -408,11 +408,15 @@ async function initNuxt (nuxt: Nuxt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add <NuxtWelcome>
|
// Add <NuxtWelcome>
|
||||||
|
// TODO: revert when deep server component config is properly bundle-split: https://github.com/nuxt/nuxt/pull/29956
|
||||||
|
const islandsConfig = nuxt.options.experimental.componentIslands
|
||||||
|
if (nuxt.options.dev || !(typeof islandsConfig === 'object' && islandsConfig.selectiveClient === 'deep')) {
|
||||||
addComponent({
|
addComponent({
|
||||||
name: 'NuxtWelcome',
|
name: 'NuxtWelcome',
|
||||||
priority: 10, // built-in that we do not expect the user to override
|
priority: 10, // built-in that we do not expect the user to override
|
||||||
filePath: resolve(nuxt.options.appDir, 'components/welcome'),
|
filePath: resolve(nuxt.options.appDir, 'components/welcome'),
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
addComponent({
|
addComponent({
|
||||||
name: 'NuxtLayout',
|
name: 'NuxtLayout',
|
||||||
|
Loading…
Reference in New Issue
Block a user