diff --git a/packages/astro/src/core/build/graph.ts b/packages/astro/src/core/build/graph.ts index 6c78d675d743..e112845ab300 100644 --- a/packages/astro/src/core/build/graph.ts +++ b/packages/astro/src/core/build/graph.ts @@ -28,8 +28,7 @@ export function* getTopLevelPages( ctx: { getModuleInfo: GetModuleInfo } ): Generator { for (const info of walkParentInfos(id, ctx)) { - const importers = (info?.importers || []).concat(info?.dynamicImporters || []); - if (importers[0] === resolvedPagesVirtualModuleId) { + if (info?.importers[0] === resolvedPagesVirtualModuleId) { yield info; } }