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

Function createRootCodgen

code/src/compiler-core/src/transform.ts:16–23  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

14};
15
16const createRootCodgen = (root) => {
17 const child = root.children[0];
18 if (child.type === NodeTypes.ELEMENT && child.codegenNode) {
19 root.codegenNode = child.codegenNode;
20 } else {
21 root.codegenNode = child;
22 }
23};
24
25const createTransformContext = (root, options) => {
26 // 创建全局上下文对象来存储我们传入的数据

Callers 1

transformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected