diff --git a/src/node/build/render.ts b/src/node/build/render.ts index 15fdcce9..84986624 100644 --- a/src/node/build/render.ts +++ b/src/node/build/render.ts @@ -65,9 +65,7 @@ export async function renderPage( let preloadLinks = config.mpa || (!hasCustom404 && page === '404.md') - ? appChunk - ? [appChunk.fileName] - : [] + ? [] : result && appChunk ? [ ...new Set([ @@ -75,8 +73,7 @@ export async function renderPage( // for them as well so we fetch everything as early as possible // without having to wait for entry chunks to parse ...resolvePageImports(config, page, result, appChunk), - pageClientJsFileName, - appChunk.fileName + pageClientJsFileName ]) ] : [] @@ -163,6 +160,11 @@ export async function renderPage(