fix(nuxt): mark internal island components with @__PURE__ (#25842)

This commit is contained in:
Julien Huang 2024-02-21 22:20:55 +01:00 committed by GitHub
parent f2d891cae9
commit b2729911b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ type ExtendedComponent = Component & {
* component only used with componentsIsland
* this teleport the component in SSR only if it needs to be hydrated on client
*/
/* @__PURE__ */
export default defineComponent({
name: 'NuxtTeleportIslandComponent',
props: {

View File

@ -4,6 +4,7 @@ import { useNuxtApp } from '../nuxt'
/**
* component only used within islands for slot teleport
*/
/* @__PURE__ */
export default defineComponent({
name: 'NuxtTeleportIslandSlot',
props: {