mirror of https://github.com/nuxt/nuxt.git
fix(nuxt): use `buildAssetsDir` in island teleport dev chunk (#27469)
This commit is contained in:
parent
af65d59678
commit
c3deaec4b6
|
@ -43,7 +43,7 @@ export default defineComponent({
|
||||||
const name = (slotType.__name || slotType.name) as string
|
const name = (slotType.__name || slotType.name) as string
|
||||||
|
|
||||||
islandContext.components[props.to] = {
|
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 || {},
|
props: slot.props || {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue