(instance)
| 61 | }; |
| 62 | |
| 63 | const 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 | |
| 76 | let currentInstance = null; |
| 77 | export const getCurrentInstance = () => { |