From c1a15aa335a82dedb60c4ab972140684a2f72e1b Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 15 Dec 2021 10:55:31 -0500 Subject: [PATCH] Only build chunks that are astro pages --- packages/astro/src/core/build/static-build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index c0fc78ff1..9f486ac9a 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -97,7 +97,7 @@ async function generatePages(result: RollupOutput, opts: StaticBuildOptions, int debug(opts.logging, 'generate', 'End build step, now generating'); const generationPromises = []; for (let output of result.output) { - if (output.type === 'chunk' && output.facadeModuleId) { + if (output.type === 'chunk' && output.facadeModuleId && output.facadeModuleId.endsWith('.astro')) { generationPromises.push(generatePage(output, opts, internals, facadeIdToPageDataMap)); } }