UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

15 lines (14 loc) 492 B
function isAstroComponentFactory(obj) { return obj == null ? false : obj.isAstroComponentFactory === true; } function isAPropagatingComponent(result, factory) { let hint = factory.propagation || "none"; if (factory.moduleId && result.componentMetadata.has(factory.moduleId) && hint === "none") { hint = result.componentMetadata.get(factory.moduleId).propagation; } return hint === "in-tree" || hint === "self"; } export { isAPropagatingComponent, isAstroComponentFactory };