Only build chunks that are astro pages

This commit is contained in:
Matthew Phillips 2021-12-15 10:55:31 -05:00
parent b3ad03bbb0
commit c1a15aa335

View file

@ -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));
}
}