Only build chunks that are astro pages
This commit is contained in:
parent
b3ad03bbb0
commit
c1a15aa335
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ async function generatePages(result: RollupOutput, opts: StaticBuildOptions, int
|
||||||
debug(opts.logging, 'generate', 'End build step, now generating');
|
debug(opts.logging, 'generate', 'End build step, now generating');
|
||||||
const generationPromises = [];
|
const generationPromises = [];
|
||||||
for (let output of result.output) {
|
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));
|
generationPromises.push(generatePage(output, opts, internals, facadeIdToPageDataMap));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue