| | |
| | | function getComponentResources(ctx: BuildCtx): ComponentResources { |
| | | const allComponents: Set<QuartzComponent> = new Set() |
| | | for (const emitter of ctx.cfg.plugins.emitters) { |
| | | const components = emitter.getQuartzComponents(ctx) |
| | | const components = emitter.getQuartzComponents?.(ctx) ?? [] |
| | | for (const component of components) { |
| | | allComponents.add(component) |
| | | } |
| | |
| | | export const ComponentResources: QuartzEmitterPlugin = () => { |
| | | return { |
| | | name: "ComponentResources", |
| | | getQuartzComponents() { |
| | | return [] |
| | | }, |
| | | async getDependencyGraph(_ctx, _content, _resources) { |
| | | return new DepGraph<FilePath>() |
| | | }, |