fix(nuxt): use buildAssetsDir in island teleport dev chunk (#27469)

This commit is contained in:
André Luiz da Silva 2024-06-07 17:46:46 -03:00 committed by GitHub
parent af65d59678
commit c3deaec4b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ export default defineComponent({
const name = (slotType.__name || slotType.name) as string
islandContext.components[props.to] = {
chunk: import.meta.dev ? '_nuxt/' + paths[name] : paths[name],
chunk: import.meta.dev ? nuxtApp.$config.app.buildAssetsDir + paths[name] : paths[name],
props: slot.props || {},
}