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

Function finishComponentSetup

code/src/runtime-core/component.ts:63–74  ·  view source on GitHub ↗
(instance)

Source from the content-addressed store, hash-verified

61};
62
63const finishComponentSetup = (instance) => {
64 const Component = instance.type;
65
66 if (compiler && !Component.render) {
67 if (Component.template) {
68 Component.render = compiler(Component.template);
69 }
70 }
71
72 // template
73 instance.render = Component.render;
74};
75
76let currentInstance = null;
77export const getCurrentInstance = () => {

Callers 1

handleSetupResultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected