fix(build): remove __RUNTIME_COMPILE__ flag

behavior should be consistent in all builds. fix #817
This commit is contained in:
Evan You
2020-03-11 16:39:26 -04:00
parent f59779706b
commit 206640a2d8
6 changed files with 16 additions and 29 deletions

View File

@@ -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
}