MCPcopy Create free account
hub / github.com/MMmaXingXing/mini-vue / aliasHelper

Function aliasHelper

code/src/compiler-core/src/codegen.ts:29–29  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

27 const { push } = context;
28 const vueBinging = "Vue";
29 const aliasHelper = (s) => `${helperMapName[s]}:_${helperMapName[s]}`;
30 if (ast.helpers.length > 0) {
31 push(`const { ${ast.helpers.map(aliasHelper)} } = ${vueBinging}`);
32 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected