fix(build): remove __RUNTIME_COMPILE__ flag
behavior should be consistent in all builds. fix #817
This commit is contained in:
@@ -19,7 +19,7 @@ const { createRecord, rerender, reload } = __VUE_HMR_RUNTIME__
|
||||
function compileToFunction(template: string) {
|
||||
const { code } = baseCompile(template)
|
||||
const render = new Function('Vue', code)(runtimeTest) as RenderFunction
|
||||
render.isRuntimeCompiled = true
|
||||
render._rc = true // isRuntimeCompiled
|
||||
return render
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user