if (__DEV__) {
endMeasure(instance, `compile`)
}
- // mark the function as runtime compiled
- ;(Component.render as InternalRenderFunction)._rc = true
}
instance.render = (Component.render || NOOP) as InternalRenderFunction
import { registerRuntimeCompiler, RenderFunction, warn } from '@vue/runtime-dom'
import * as runtimeDom from '@vue/runtime-dom'
import { isString, NOOP, generateCodeFrame, extend } from '@vue/shared'
+import { InternalRenderFunction } from 'packages/runtime-core/src/component'
__DEV__ && initDev()
const render = (__GLOBAL__
? new Function(code)()
: new Function('Vue', code)(runtimeDom)) as RenderFunction
+
+ // mark the function as runtime compiled
+ ;(render as InternalRenderFunction)._rc = true
+
return (compileCache[key] = render)
}