feat(nuxt): treeshake onUpdated and onUnmounted on server (#27044)

This commit is contained in:
Alex Liu 2024-05-03 17:13:54 +08:00 committed by GitHub
parent 9735fbc7e4
commit 7ea05acbc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,7 +165,7 @@ export default defineUntypedSchema({
await get('dev')
? {}
: {
'vue': ['onBeforeMount', 'onMounted', 'onBeforeUpdate', 'onRenderTracked', 'onRenderTriggered', 'onActivated', 'onDeactivated', 'onBeforeUnmount'],
'vue': ['onMounted', 'onUpdated', 'onUnmounted', 'onBeforeMount', 'onBeforeUpdate', 'onBeforeUnmount', 'onRenderTracked', 'onRenderTriggered', 'onActivated', 'onDeactivated'],
'#app': ['definePayloadReviver', 'definePageMeta'],
},
),
@ -175,7 +175,7 @@ export default defineUntypedSchema({
await get('dev')
? {}
: {
'vue': ['onServerPrefetch', 'onRenderTracked', 'onRenderTriggered'],
'vue': ['onRenderTracked', 'onRenderTriggered', 'onServerPrefetch'],
'#app': ['definePayloadReducer', 'definePageMeta'],
},
),