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

Method helper

packages/compiler-sfc/src/script/context.ts:68–71  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

66 bindingMetadata: BindingMetadata = {}
67 helperImports: Set<string> = new Set()
68 helper(key: string): string {
69 this.helperImports.add(key)
70 return `_${key}`
71 }
72
73 /**
74 * to be exposed on compiled script block for HMR cache busting

Callers 1

compileScriptFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected