UNPKG

mp-lens

Version:

微信小程序分析工具 (Unused Code, Dependencies, Visualization)

12 lines (11 loc) 612 B
import { PathResolver } from '../../utils/path-resolver'; /** * Analyzes a WXML file and all its imported/included templates recursively * to extract a map of tag name -> set of WXML files where it is used. * * @param wxmlFilePath Path to the WXML file to analyze * @param pathResolver Instance of PathResolver to resolve import/include paths * @param visited Set of already visited files (to prevent infinite loops) * @returns Map<tag, Set<wxmlFile>> */ export declare function analyzeWxmlTags(wxmlFilePath: string, pathResolver: PathResolver, visited?: Set<string>): Promise<Map<string, Set<string>>>;