import type { EagerRouteComponentFilesByEntry } from '@modern-js/utils'; import type { AppNormalizedConfig } from '../../types/index.js'; import type { AppToolsContext } from '../../types/plugin.js'; export type BuilderOptions = { normalizedConfig: AppNormalizedConfig; appContext: AppToolsContext; /** * Route component files collected from the FINAL file-system routes (after * all `modifyFileSystemRoutes` consumers ran), keyed by entry name. Populated * by the router plugin during route generation and threaded in here (read * FRESH from the app context AFTER `generateEntryCode` runs) so builder * plugins can force route component chunks eager under lazy compilation. * Explicit param instead of a direct `_internalContext` read. */ eagerRouteComponentFilesByEntry?: EagerRouteComponentFilesByEntry; };