Kind: Class
UI Library Detector
Methods
| Method | Signature | Returns |
|---|---|---|
detect | detect(entities: Entity[]) | DetectedUIComponent[] |
getSummary | getSummary(components: DetectedUIComponent[]) | UILibrarySummary[] |
getComponentSummary | getComponentSummary(component: DetectedUIComponent) | string |
Where it refuses work
UILibraryDetectorstops the work with an early return when!tagMatch, in 2 places.UILibraryDetectorstops the work with an early return whenpatterns.importPattern.test(code).UILibraryDetectorstops the work with an early return when/className\s*=\s*["'][^"']*(?:flex|grid|bg-|text-|p-|m-|w-|h-)/.test(code).UILibraryDetectorstops the work with an early return whenseen.has(key).
Was this page helpful?