The component a lazy route module renders: its default export, else its `Component` export.
(spec: string, fromFile: string, context: ResolutionContext, reads?: Set<string>)
| 484 | |
| 485 | /** The component a lazy route module renders: its default export, else its `Component` export. */ |
| 486 | function lazyRouteComponent(spec: string, fromFile: string, context: ResolutionContext, reads?: Set<string>): string | null { |
| 487 | const file = lazyModuleFile(spec, fromFile, context); |
| 488 | if (!file) return null; |
| 489 | return exportedComponent(file, 'default', context, new Set(), reads) ?? |
| 490 | exportedComponent(file, 'Component', context, new Set(), reads); |
| 491 | } |
| 492 | |
| 493 | /** The files `lazyRouteComponent` reads: the module, and the ones a barrel forwards it to. */ |
| 494 | function lazyRouteFiles(spec: string, fromFile: string, context: ResolutionContext): string[] { |
no test coverage detected