Replies: 1 comment
-
The async chunks are not loaded at the initial page initialization, but rather triggered to load at some stage during the execution of the initial chunk. That's why they are not included in the HTML template. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't have an example repo to replicate this but I've seen an issue where enabling the manifest with:
output.manifest = true
following this guide results in differentinitial
assets than what I can see when using the html transformer:If we parse the manifest and include just
const { js, css } = entries['index'].initial;
our page won't work because it is missing some chunks.Two things we were able to do fixed this:
async
, this blows up the initial page load and is not ideal/async/
JS assets and including those as well asentries['index'].initial
so like:js = [...entries['index'].initial, ...entries['index'].async.filter((url) => !url.includes('/async/'))]
What is the reasoning for this discrepancy with the built in transformer and the manifest generator?
Beta Was this translation helpful? Give feedback.
All reactions