MCPcopy
hub / github.com/vuejs/core / isImportUsed

Function isImportUsed

packages/compiler-sfc/src/script/importUsageCheck.ts:19–21  ·  view source on GitHub ↗
(local: string, sfc: SFCDescriptor)

Source from the content-addressed store, hash-verified

17 * when not using inline mode.
18 */
19export function isImportUsed(local: string, sfc: SFCDescriptor): boolean {
20 return resolveTemplateUsedIdentifiers(sfc).has(local)
21}
22
23const templateAnalysisCache = createCache<{
24 usedIds?: Set<string>

Callers 2

registerUserImportFunction · 0.90
hmrShouldReloadFunction · 0.90

Calls 2

hasMethod · 0.80

Tested by

no test coverage detected