Closed as not planned
Description
If a component is defined as an async component like this:
app.component('HelloWorld', defineAsyncComponent(() => import(/* webpackChunkName: "hello-world" */ './components/HelloWorld.vue')));
Component resources (js, css) are not included in the result of renderToString().preloadFiles()
.
Here is example: https://github.com/juvirez/test-async-components
It looks like here is the code responsible for this:
vue-bundle-renderer/src/renderer.ts
Lines 160 to 166 in d01cf4e
But in my case
_registeredComponents
is undefined. How can I define this variable for ssrContext?Metadata
Metadata
Assignees
Labels
No labels